Linux 2.6.13.4 --> 2.6.14.3 & security contexts
After "upgrading" from 2.6.13.4 to 2.6.14.3, selinux stopped working as expected.
Security context is not created for new files.
For example, when I do "touch ~/hirvi ; ls -lZ ~/hirvi" I get
-rw-rw---- safari safari /home/safari/hirvi
and after "useradd -M foobar" I have to do
"restorecon /etc/shadow* /etc/passwd* /etc/group* /etc/gshadow*" or I can't add more users. And "restorecon /etc/ld.so.c*" needed after running ldconfig.
With 2.6.13.4 I used fedora's selinux-policy-targeted-1*, and with 2.6.14.3 the same one. When I noticed all is not fine, I "upgraded" to serefpolicy 2.0.5.
After disabling execmem globally, it seemed to work except that security context is not created for new files.
So, all I would like to know is how to get 2.6.13.4 behavior back (_and_ while running 2.6.14.3) with smallest possible amount of sweat and blood.
$ id uid=500(safari) gid=500(safari) groups=37(rpm),500(safari),509(xuser),546(sound) context=user_u:system_r:unconfined_t:s0-s0:c0.c255
Signature · 4 lines
-- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 19 lines · Sami Farin
After "upgrading" from 2.6.13.4 to 2.6.14.3, selinux stopped working as expected.
Security context is not created for new files.For example, when I do "touch ~/hirvi ; ls -lZ ~/hirvi" I get
-rw-rw---- safari safari/home/safari/hirviand after "useradd -M foobar" I have to do
"restorecon/etc/shadow*/etc/passwd*/etc/group*/etc/gshadow*" or I can't add more users. And "restorecon/etc/ld.so.c*" needed after running ldconfig.With 2.6.13.4 I used fedora's selinux-policy-targeted-1*, and with 2.6.14.3 the same one. When I noticed all is not fine, I "upgraded" to serefpolicy 2.0.5.
After disabling execmem globally, it seemed to work except that security context is not created for new files.
Quoted 6 lines
So, all I would like to know is how to get 2.6.13.4 behavior back (_and_ while running 2.6.14.3) with smallest possible amount of sweat and blood.
$ id uid=500(safari) gid=500(safari) groups=37(rpm),500(safari),509(xuser),546(sound) context=user_u:system_r:unconfined_t:s0-s0:c0.c255
What filesystem type are you using?
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Stephen Smalley
Quoted 7 lines · Sami Farin
All are XFS.
/dev/root/ xfs rw,noatime 0 0/dev/hdc7/var xfs rw,noatime 0 0/dev/hdc8/usr xfs rw,noatime 0 0/dev/hdc9/wrk xfs rw,noatime 0 0/dev/loop0/mnt/aesxfs rw,noatime,nosuid,nodev 0 0
Quoted 5 lines
Therein lies the problem. As of 2.6.14, xfs is not supported with SELinux until such a time as the xfs developers update their filesystem to call the
security_inode_init_security()hook and set the attribute on newly created inodes. Please nag the xfs developers about this. See:
http://marc.theaimsgroup.com/?l=selinux&m=112653995
Re-sending with the list cc'd this time, as you dropped the list from your reply and thus my reply also didn't include the list. I think this is of general interest; we are likely to receive more such reports in the future, so I wanted it archived.
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.