Lines 11-16
Link Here
|
11 |
|
11 |
|
12 |
checkxattr() { |
12 |
checkxattr() { |
13 |
local testpath testfile ret |
13 |
local testpath testfile ret |
|
|
14 |
# SELinux requires xattrs, so we can assume things work already |
15 |
[ -f /sys/fs/selinux/status ] && return 0; |
14 |
testpath=$(awk '/^[[:space:]]*dir/ {print $2}' /etc/cachefilesd.conf) |
16 |
testpath=$(awk '/^[[:space:]]*dir/ {print $2}' /etc/cachefilesd.conf) |
15 |
testfile="${testpath}/.tmp-xattr-test.cachefilesd" |
17 |
testfile="${testpath}/.tmp-xattr-test.cachefilesd" |
16 |
touch "${testfile}" |
18 |
touch "${testfile}" |