Skip to contentSkip to conversation

No chance of using SELinux on rootfs without security namespace?

DISCUSSION dE 2 participants 3 messages Apr 28, 2014 – Apr 29, 2014 SELinux security module

lore
Share & tools
lore

dE

author
#0 lore raw

I just realized -- my rootfs doesn't support xattr (reiser4).

Is there any chance I can use SELinux?

#1 lore raw

It would be difficult at best, unless you are only using it for a minimalist root and everything else is on some other filesystem type. Without xattrs, you do not have per-file security labels and therefore cannot set up automatic domain transitions on any of the executables in that filesystem or otherwise distinguish any of those files in the policy. Lack of xattr support in a native Linux filesystem is a significant drawback these days; xattrs are used not only for SELinux but also for ACLs, file capabilities, and various application purposes (user. namespace). reiser4 isn't in mainline AFAIK.

Quoted 9 lines · dE

I just realized -- my rootfs doesn't support xattr (reiser4).

Is there any chance I can use SELinux?
_______________________________________________
Selinux mailing list
[email protected]
To unsubscribe, send email to [email protected]. To get help, send an email containing "help" to [email protected].

author
#2 lore raw
Quoted 10 lines · Stephen Smalley

It would be difficult at best, unless you are only using it for a minimalist root and everything else is on some other filesystem type. Without xattrs, you do not have per-file security labels and therefore cannot set up automatic domain transitions on any of the executables in that filesystem or otherwise distinguish any of those files in the policy. Lack of xattr support in a native Linux filesystem is a significant drawback these days; xattrs are used not only for SELinux but also for ACLs, file capabilities, and various application purposes (user. namespace). reiser4 isn't in mainline AFAIK.

Quoted 10 lines
Quoted 9 lines · dE

I just realized -- my rootfs doesn't support xattr (reiser4).

Is there any chance I can use SELinux?
_______________________________________________
Selinux mailing list
[email protected]
To unsubscribe, send email to [email protected]. To get help, send an email containing "help" to [email protected].

Thanks for clarifying that.

I'll try out SELinux in that fedora VM.