Debian Codegraph @

tests/kern/t46

raw
1 #!/bin/bash -e
2
3 cd $PATH_MNTDIR
4 touch testfile
5
6 setfattr -n trusted.foo -v fooval testfile
7 setfattr -n trusted.bar -v barval testfile
8 setfattr -n trusted.baz -v bazval testfile
9
10 # ext4_xattr_trusted_list () returns empty if !capable(CAP_SYS_ADMIN)
11 # diod dropps this capability. Why does this work?
12 getfattr -m- -d testfile
13
14 setfattr -x trusted.foo testfile
15 setfattr -x trusted.bar testfile
16 setfattr -x trusted.baz testfile
17
18 getfattr -m- -d testfile
19
20 exit 0