On 5/17/2019 6:43 AM, José Bollo wrote:
Hi all,
I'm trying to mount a configfs directory and set it the smackfsdef
value on a "Linux m3ulcb 4.14.75-ltsi-yocto-standard"
As root, I tried:
mount -t configfs -o smackfsdef=X none /config
It always always fail:
# chsmack -r /config
/config access="_"
/config/snd-avirt access="_"
/config/snd-avirt/routes access="_"
/config/snd-avirt/streams access="_"
/config/snd-avirt/streams/configured access="_"
Note that the commit c3300aaf95fb4 of Al Viro (Sun Dec 16 01:52:24
2018) changed smackfsdef to smackfsdefault!!!!
Thank you for catching this. I will be proposing a patch
based on your suggestion shortly.
So I also tried: mount -t configfs -o smackfsdefault=X none /config
And had no error nad no result. But I got an error when trying to use
that option for mounting tmpfs. It probably means that security options
are not scanned when mounting configfs on 4.14.
Any clue?
Best regards
José Bollo
P.S. (If it helps)
m3ulcb:~# stat /config/snd-avirt/streams/configured -f
File: "/config/snd-avirt/streams/configured"
ID: 0 Namelen: 255 Type: configfs
Block size: 4096 Fundamental block size: 4096
Blocks: Total: 0 Free: 0 Available: 0
Inodes: Total: 0 Free: 0
m3ulcb:~# stat /config/snd-avirt/streams/configured
File: /config/snd-avirt/streams/configured
Size: 4096 Blocks: 0 IO Block: 4096 regular
file Device: 22h/34d Inode: 195316 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2019-05-17 13:35:06.830474837 +0000
Modify: 2019-05-17 13:35:06.830474837 +0000
Change: 2019-05-17 13:35:06.830474837 +0000
Birth: -
_______________________________________________
SMACK-discuss mailing list
SMACK-discuss(a)lists.01.org
https://lists.01.org/mailman/listinfo/smack-discuss