Skip to contentSkip to conversation

running filecaps ltp test

DISCUSSION Serge E. Hallyn 4 participants 7 messages Jul 7, 2008 – Jul 8, 2008 SELinux security module

lore
Share & tools
lore
#0 lore raw

It looks like unconfined_t is not granted setfcap capability. So when running ltp as unconfined_t, the file capabilities test fails. I'm just wondering what the right answer is:

1. require running ltp as an administrative type
2. give ltp a custom policy module to create an ltp_t
3. give setfcap to unconfined_t

thanks,
-serge

--
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 7 lines · Serge E. Hallyn

It looks like unconfined_t is not granted setfcap capability. So when running ltp as unconfined_t, the file capabilities test fails. I'm just wondering what the right answer is:

1. require running ltp as an administrative type
2. give ltp a custom policy module to create an ltp_t
3. give setfcap to unconfined_t

unconfined_t should have all capabilities already. Policy version?

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.
#2 lore raw
Quoted 6 lines · Stephen Smalley
Quoted 4 lines · Serge E. Hallyn

It looks like unconfined_t is not granted setfcap capability. So when running ltp as unconfined_t, the file capabilities test fails. I'm just wondering what the right answer is:

Quoted 6 lines
Quoted 4 lines

1. require running ltp as an administrative type
2. give ltp a custom policy module to create an ltp_t
3. give setfcap to unconfined_t

unconfined_t should have all capabilities already. Policy version?

Well, earlier today while running as _root_ with full-blown permissions, I noticed that I couldn't access */home/dave/.gvfs*, (except to see that it is a directory).

[dave@fedora ~]$ *ls -ld /home/dave/.gvfs* dr-x------ 2 dave durant 0 2008-07-07 09:40 /home/dave/.gvfs [dave@fedora ~]$ su -
Password: [root@fedora ~]# *ls -ld .gvfs*
ls: cannot access /home/dave/.gvfs: Permission denied [root@fedora ~]# *secon*
user: unconfined_u
role: unconfined_r
type: unconfined_t
sensitivity: s0
clearance: s0:c0.c1023
mls-range: s0-s0:c0.c1023
[root@fedora ~]#

David L Durant
=================

--
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 19 lines · David L Durant (Mags)
Quoted 6 lines · Stephen Smalley
Quoted 4 lines · Serge E. Hallyn

It looks like unconfined_t is not granted setfcap capability. So when running ltp as unconfined_t, the file capabilities test fails. I'm just wondering what the right answer is:

Quoted 6 lines
Quoted 4 lines

1. require running ltp as an administrative type
2. give ltp a custom policy module to create an ltp_t
3. give setfcap to unconfined_t

unconfined_t should have all capabilities already. Policy version?

Well, earlier today while running as _root_ with full-blown permissions, I noticed that I couldn't access */home/dave/.gvfs*, (except to see that it is a directory).

Quoted 14 lines

[dave@fedora ~]$ *ls -ld /home/dave/.gvfs* dr-x------ 2 dave durant 0 2008-07-07 09:40 /home/dave/.gvfs [dave@fedora ~]$ su -
Password:
[root@fedora ~]# *ls -ld .gvfs*
ls: cannot access /home/dave/.gvfs: Permission denied [root@fedora ~]# *secon*
user: unconfined_u
role: unconfined_r
type: unconfined_t
sensitivity: s0
clearance: s0:c0.c1023
mls-range: s0-s0:c0.c1023
[root@fedora ~]#

I don't think that is SELinux-related (retry after "setenforce 0" and/or check your audit log via "/sbin/ausearch -m AVC -sv no"). Likely just that /home/dave is NFS mounted and you have rootsquash on the NFS server...

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.
#4 lore raw
In reply to Stephen Smalley
Quoted 6 lines · Stephen Smalley
Quoted 4 lines · Serge E. Hallyn

It looks like unconfined_t is not granted setfcap capability. So when running ltp as unconfined_t, the file capabilities test fails. I'm just wondering what the right answer is:

Quoted 6 lines
Quoted 3 lines

1. require running ltp as an administrative type
2. give ltp a custom policy module to create an ltp_t
3. give setfcap to unconfined_t

unconfined_t should have all capabilities already. Policy version?

Hmm yeah, I see that in the reference policy... I've not had the chance to test it myself. David had found this on his Fedora 9 machine.

David, what policy version?

-serge

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

#5 lore raw
Quoted 1 line · Serge E. Hallyn

David, what policy version?

selinux-policy-3.3.1-72.fc9.noarch
selinux-policy-targeted-3.3.1-72.fc9.noarch
selinux-policy-devel-3.3.1-72.fc9.noarch

Is that what you want to know?

David

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

#6 lore raw
Quoted 9 lines · David Howells
Quoted 1 line · Serge E. Hallyn

David, what policy version?

selinux-policy-3.3.1-72.fc9.noarch
selinux-policy-targeted-3.3.1-72.fc9.noarch
selinux-policy-devel-3.3.1-72.fc9.noarch

Is that what you want to know?

Ok, that's a bug in the Fedora policy, not an upstream issue. You can work around it by adding it in a local policy module.

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.