context for /dev/.devfsd?
What should the context be for /dev/.devfsd? I used russels devfsd-conflet file in my system and half of the avc denials are gone. I am trying to define a proper type .devfsd.
should it be:
type devfsd_control_t, file_type;?
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 7 lines · Debian User
What should the context be for
/dev/.devfsd? I used russels devfsd-conflet file in my system and half of the avc denials are gone. I am trying to define a proper type .devfsd.should it be:
type
devfsd_control_t,file_type;?
Good idea.
While playing around I added the following to devfs_contexts on a test machine:
/.devfsd system_u:object_r:devfs_control_t
I added the following to types/device.te:
# Type for /dev/.devfsd
type devfs_control_t, file_type;
And the following to domains/program/devfsd.te:
allow devfsd_t devfs_control_t:chr_file { read ioctl };
Then I discovered that /.devfsd is invalid syntax for policy.conf.
Can this be fixed?
Signature · 9 lines
If you send email to me or to a mailing list that I use which has >4 lines of legalistic junk at the end then you are specifically authorizing me to do whatever I wish with the message and all other messages from your domain, by posting the message you agree that your long legalistic sig is void. -- You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 7 lines · Russell Coker
While playing around I added the following to
devfs_contextson a test machine:
/.devfsd system_u:object_r:devfs_control_tThen I discovered that /.devfsd is invalid syntax for policy.conf.
Can this be fixed?
Patch attached, also committed to sourceforge CVS.
--
Stephen D. Smalley, NAI Labs
[email protected]
Index: module/checkpolicy/policy_scan.l
===================================================================
RCS file: /cvs/lsm/selinux/module/checkpolicy/policy_scan.l,v retrieving revision 1.4
retrieving revision 1.5
checkpolicy/policy_scan.l +1 -1
@@ -102,7 +102,7 @@ T1 { return(T1); } t2 | T2 { return(T2); } -"/"({letter}|{digit}|_|"/")* { return(PATH); } +"/"({letter}|{digit}|_|"."|"/")* { return(PATH); } {letter}({letter}|{digit}|_)* { return(IDENTIFIER); } {digit}{digit}* { return(NUMBER); } #[^\n]* { /* delete comments */ }