summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2021-08-04 13:49:54 +0200
committerDmitry V. Levin <ldv@strace.io>2021-08-04 11:49:54 +0000
commit018471595833806726c939d32e25db82505c12f7 (patch)
tree5c30873371f900d123c627ddbbc3508e75959419
parent4fa998b179753d13fb54035d56f9618907c9c690 (diff)
downloadstrace-018471595833806726c939d32e25db82505c12f7.tar.gz
xlat: update MOUNT_ATTR_* constants
* src/xlat/mount_attr_attr.in (MOUNT_ATTR_NOSYMFOLLOW): New constant, introduced by Linux commit v5.14-rc1~139^2~1. * NEWS: Mention this. * tests/mount_setattr.c (main): Update expected output.
-rw-r--r--NEWS3
-rw-r--r--src/xlat/mount_attr_attr.in1
-rw-r--r--tests/mount_setattr.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index c65d9dcf1..d5971e6df 100644
--- a/NEWS
+++ b/NEWS
@@ -5,7 +5,8 @@ Noteworthy changes in release ?.?? (????-??-??)
* Implemented decoding of memfd_secret and quotactl_fd syscalls,
introduced in Linux 5.14.
* Enhanced decoding of IFLA_* netlink attributes.
- * Updated lists of BPF_*, IORING_*, MADV_*, SCTP_*, and UFFD_* constants.
+ * Updated lists of BPF_*, IORING_*, MADV_*, MOUNT_ATTR_*, SCTP_*,
+ and UFFD_* constants.
* Bug fixes
* Fixed build using bionic libc.
diff --git a/src/xlat/mount_attr_attr.in b/src/xlat/mount_attr_attr.in
index 5ff8c9ca0..23359eff3 100644
--- a/src/xlat/mount_attr_attr.in
+++ b/src/xlat/mount_attr_attr.in
@@ -7,3 +7,4 @@ MOUNT_ATTR_NOATIME
MOUNT_ATTR_STRICTATIME
MOUNT_ATTR_NODIRATIME
MOUNT_ATTR_IDMAP
+MOUNT_ATTR_NOSYMFOLLOW
diff --git a/tests/mount_setattr.c b/tests/mount_setattr.c
index 264e1de99..5532d7527 100644
--- a/tests/mount_setattr.c
+++ b/tests/mount_setattr.c
@@ -92,7 +92,7 @@ main(void)
#endif
static const struct strval64 valid_attr =
- { ARG_STR(MOUNT_ATTR_RDONLY|MOUNT_ATTR_NOSUID|MOUNT_ATTR_NODEV|MOUNT_ATTR_NOEXEC|MOUNT_ATTR_NOATIME|MOUNT_ATTR_STRICTATIME|MOUNT_ATTR_NODIRATIME|MOUNT_ATTR_IDMAP) };
+ { ARG_STR(MOUNT_ATTR_RDONLY|MOUNT_ATTR_NOSUID|MOUNT_ATTR_NODEV|MOUNT_ATTR_NOEXEC|MOUNT_ATTR_NOATIME|MOUNT_ATTR_STRICTATIME|MOUNT_ATTR_NODIRATIME|MOUNT_ATTR_IDMAP|MOUNT_ATTR_NOSYMFOLLOW) };
for (unsigned int j = 0; j < 4; ++j) {
struct mount_attr *const a = j > 1 ? attr_big : attr;