privfd attribute
Hi,
the privfd attribute is ofter use in the policy. But I don't understand why we create and use this attribute.
And why don't we use it like e.g. the privlog attribute? Privlog is declared in attrib.te, get his rights in syslogd.te and often use in domain declarations. Is the same way for privfd not possible? This could simplify the rules. Or?
Carsten
--
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 6 lines · Carsten Grohmann
the privfd attribute is ofter use in the policy. But I don't understand why we create and use this attribute.
And why don't we use it like e.g. the privlog attribute? Privlog is declared in attrib.te, get his rights in syslogd.te and often use in domain declarations. Is the same way for privfd not possible? This could simplify the rules. Or?
privlog is an attribute specifying that a process gets certain access (IE to /dev/log - but later it might be to some other form of logging).
privfd is an attribute used to grant access to a process. Any domain that opens a file handle that lots of other domains need to access (example crond_t, login_t, sshd_t, newrole_t) gets it.
privlog and privfd are totally different types of attribute used for totally different things (at a conceptual level at least).
Signature · 10 lines
There is no point PGP/GPG signing an email unless the signature can be verified. If you post to a list then don't sign the message unless your key is available on public key servers and has been signed by someone who is in the web of trust, otherwise you just waste bandwidth and CPU. -- 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.
Am Mittwoch, 18. September 2002 19:50 schrieb Russell Coker:
Quoted 9 lines
privlog is an attribute specifying that a process gets certain access (IE to
/dev/log- but later it might be to some other form of logging).privfd is an attribute used to grant access to a process. Any domain that opens a file handle that lots of other domains need to access (example
crond_t,login_t,sshd_t,newrole_t) gets it.privlog and privfd are totally different types of attribute used for totally different things (at a conceptual level at least).
I am not sure, if I understand the usage of the attributes right. After I declared an attribute, I can use it in a type declaration. And then I can use it in two ways:
1. I can write a allow rule like this
allow myattribute exampledomain_conf_t:file r_file_perms;
and all other domains which have this attribute in the domain declaration have grant access to this file without an specific rule.
An Example of this this the privlog attribute.
2. I could it uses as an set of type and through this I can write simple rules
allow mydomain_t myattribute:fd use;
instead of
allow mydomain_t { login_t sshd_t, newrole_t }:fd use;and it will by easier to add or remove new types. The privfd attribute is an Example of this.
Have I understand this correct?
Carsten
--
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]
Quoted 15 lines · Carsten Grohmann
Am Mittwoch, 18. September 2002 19:50 schrieb Russell Coker:
Quoted 9 lines
privlog is an attribute specifying that a process gets certain access (IE to
/dev/log- but later it might be to some other form of logging).privfd is an attribute used to grant access to a process. Any domain that opens a file handle that lots of other domains need to access (example
crond_t,login_t,sshd_t,newrole_t) gets it.privlog and privfd are totally different types of attribute used for totally different things (at a conceptual level at least).
I am not sure, if I understand the usage of the attributes right. After I declared an attribute, I can use it in a type declaration. And then I can use it in two ways:
1. I can write a allow rule like this
Quoted 5 lines
allow myattribute exampledomain_conf_t:file r_file_perms;and all other domains which have this attribute in the domain declaration have grant access to this file without an specific rule.
An Example of this this the privlog attribute.
That is correct.
Quoted 7 lines
2. I could it uses as an set of type and through this I can write simple rules
allow mydomain_t myattribute:fd use; instead of allow mydomain_t { login_t sshd_t, newrole_t }:fd use;and it will by easier to add or remove new types. The privfd attribute is an Example of this.
These two examples are not fundamentally different. In both cases you are using the attribute as a set of domains. Whenever you see an attribute you can just replace it with { list of all types that have the attribute } and get exactly the same result.
Signature · 10 lines
There is no point PGP/GPG signing an email unless the signature can be verified. If you post to a list then don't sign the message unless your key is available on public key servers and has been signed by someone who is in the web of trust, otherwise you just waste bandwidth and CPU. -- 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.