Skip to contentSkip to conversation

apparent bug in setrans

DISCUSSION Russell Coker 2 participants 4 messages Jan 24, 2006 – Jan 27, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw
$ runcon -l s0:c1.c3 id
uid=500(rjc) gid=500(rjc) groups=500(rjc) context=rjc:system_r:unconfined_t

Above is the result of running id on a fairly recent rawhide machine. It appears that there's a bug in setrans which maps everything to "" if it can't find a name.

I'm currently finishing my paper for the SE Linux Symposium and then I've got to work on a tutorial for LCA in a few days. I'll schedule fixing this bug for the weekend if no-one else beats me to it.

Signature · 9 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
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.
#1 lore raw
Quoted 6 lines · Russell Coker
$ runcon -l s0:c1.c3 id
uid=500(rjc) gid=500(rjc) groups=500(rjc) context=rjc:system_r:unconfined_t

Above is the result of running id on a fairly recent rawhide machine. It appears that there's a bug in setrans which maps everything to "" if it can't find a name.

An apparently related bug is that the command "newrole -l s3-s15:c0.c255" will fail because it tries to label the terminal device with no sensitivity level. Adding "s3=TopSecret" in the setrans.conf file makes it work correctly.

Signature · 9 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
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.
#2 lore raw
In reply to Russell Coker
Quoted 4 lines · Russell Coker
$ runcon -l s0:c1.c3 id
uid=500(rjc) gid=500(rjc) groups=500(rjc) context=rjc:system_r:unconfined_t

I am getting
runcon -l s0:c1.c7 id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) context=user_u:system_r:unconfined_t:s0:c1.c7 rpm -q libsetrans
libsetrans-0.1.18-1

Quoted 5 lines

Above is the result of running id on a fairly recent rawhide machine. It appears that there's a bug in setrans which maps everything to "" if it can't find a name.

I'm currently finishing my paper for the SE Linux Symposium and then I've got to work on a tutorial for LCA in a few days. I'll schedule fixing this bug for the weekend if no-one else beats me to it.

--
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.

#3 lore raw
Quoted 5 lines · Daniel J Walsh
Quoted 3 lines · Russell Coker
$ runcon -l s0:c1.c3 id
uid=500(rjc) gid=500(rjc) groups=500(rjc)
context=rjc:system_r:unconfined_t
Quoted 7 lines

I am getting
runcon -l s0:c1.c7 id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) context=user_u:system_r:unconfined_t:s0:c1.c7
rpm -q libsetrans
libsetrans-0.1.18-1

Thanks, version 0.1.18-1 has fixed that problem for me. I haven't yet tested it on my MLS test system though.

Signature · 9 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
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.