All of lore.kernel.org
 help / color / mirror / Atom feed
* pidfs
@ 2024-12-07  3:22 Russell Coker
  2024-12-09 14:12 ` pidfs Chris PeBenito
  0 siblings, 1 reply; 2+ messages in thread
From: Russell Coker @ 2024-12-07  3:22 UTC (permalink / raw)
  To: SELinux Reference Policy mailing list

What's this new pidfs that seems to have just become visible in 6.11.10 or 
similar recent kernels?

https://lwn.net/Articles/714932/

The above article has some information about a previous iteration of it, 
apparently not a separate mountable filesystem but a part of /proc that can be 
mounted as part of a container.

I'm seeing the following audit entries about it, what should we do in policy 
about this?

type=AVC msg=audit(1733540968.538:31305): avc:  denied  { getattr } for  
pid=1465 comm="systemd" name="/" dev="pidfs" ino=1 
scontext=etbe:user_r:user_systemd_t:s0-s0:c0.c1023 
tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem permissive=0

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/




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

* Re: pidfs
  2024-12-07  3:22 pidfs Russell Coker
@ 2024-12-09 14:12 ` Chris PeBenito
  0 siblings, 0 replies; 2+ messages in thread
From: Chris PeBenito @ 2024-12-09 14:12 UTC (permalink / raw)
  To: Russell Coker, SELinux Reference Policy mailing list; +Cc: Paul Moore

On 12/6/2024 10:22 PM, Russell Coker wrote:
> What's this new pidfs that seems to have just become visible in 6.11.10 or
> similar recent kernels?
> 
> https://lwn.net/Articles/714932/
> 
> The above article has some information about a previous iteration of it,
> apparently not a separate mountable filesystem but a part of /proc that can be
> mounted as part of a container.
> 
> I'm seeing the following audit entries about it, what should we do in policy
> about this?
> 
> type=AVC msg=audit(1733540968.538:31305): avc:  denied  { getattr } for
> pid=1465 comm="systemd" name="/" dev="pidfs" ino=1
> scontext=etbe:user_r:user_systemd_t:s0-s0:c0.c1023
> tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem permissive=0

You should expect to see pidfds extensively with systemd processes, as 
the main systemd interfaces now use pidfds.

Right now the only option is to use a genfscon or task sid.  I'd have 
preferred to improve the labeling behavior, but no kernel devs have had 
a chance to address it.

See https://github.com/SELinuxProject/refpolicy/pull/762

--
Chris


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

end of thread, other threads:[~2024-12-09 14:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-07  3:22 pidfs Russell Coker
2024-12-09 14:12 ` pidfs Chris PeBenito

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.