linux - xattr/extended attributes not settable for file in /tmp while in $home on same mount works fine -


i playing extended file attributes under linux/fedora , stumbling bit since cannot add/change attributes files in /tmp while in home working fine - while both paths on same mount point, i.e.,

/dev/mapper/fedora-root on / type ext4 (rw,relatime,seclabel,data=ordered) 

for example, can successful add , retrieve attribute files in home directory, e.g.,

> setfattr -n user.test.md5 -v 58d8e4cd0e60facf386838cbe8b11767 ~/foo.bar > getfattr -n user.test.md5 ~/foo.bar    # file: foo.bar   user.test.md5="58d8e4cd0e60facf386838cbe8b11767" 

however, same fails same file in /tmp.

> cp ~/foo.bar /tmp/foo.bar > setfattr -n user.test.md5 -v 58d8e4cd0e60facf386838cbe8b11767 /tmp/foo.bar    setfattr: /tmp/foo.bar: operation not supported 

i assumed, support extended attributes depends on filesystem mounted 'correctly' xattr support. however, seems directory(??) dependent , wonder, prevents me setting extended attributes in /tmp , how can change it? (it seems not selinux related - @ least did not find in audit logs.)

/tmp not naively assumed mounted plainly mounted tmpfs, apparently not support extended attributes

tmpfs on /tmp type tmpfs (rw,seclabel)

thanks twalberg!


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -