All of lore.kernel.org
 help / color / mirror / Atom feed
* target context of security:setbool permission check
@ 2020-03-02 15:44 Christian Göttsche
  2020-03-02 16:37 ` Dominick Grift
  2020-03-02 18:56 ` Stephen Smalley
  0 siblings, 2 replies; 3+ messages in thread
From: Christian Göttsche @ 2020-03-02 15:44 UTC (permalink / raw)
  To: selinux

Hi,

currently the target context of the security:setbool permission check
is hardcoded to the security-initial-sid.[1][2]
Nowadays it is possible to label the boolean pseudo files via genfscon.

Is this by design or did nobody yet make it possible to base the check
on the actual file-context?

Or is the current access limitation to booleans via the file:write
permission to the boolean pseudo-files sufficient?


[1]: https://github.com/torvalds/linux/blob/b1dba2473114588be3df916bf629a61bdcc83737/security/selinux/selinuxfs.c#L1234
[2]: https://github.com/torvalds/linux/blob/b1dba2473114588be3df916bf629a61bdcc83737/security/selinux/selinuxfs.c#L1290

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-02 18:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-02 15:44 target context of security:setbool permission check Christian Göttsche
2020-03-02 16:37 ` Dominick Grift
2020-03-02 18:56 ` Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.