All of lore.kernel.org
 help / color / mirror / Atom feed
* Currently the kernel is interpreting reading the link file on /proc/PID/exe as sys_ptrace for a different UID.
@ 2012-02-13 21:49 Daniel J Walsh
  2012-02-13 23:09 ` Stephen Smalley
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel J Walsh @ 2012-02-13 21:49 UTC (permalink / raw)
  To: Stephen Smalley, Eric Paris, SELinux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I believe this should be DAC_READ_SEARCH.

I am trying to prevent all SYS_PTRACE from any domain on the system
but certain apps like dbus, consolekit, policykit, systemd-logger and
others like to look /proc/PID/exe to report the path of the executable
they are communicating with.  This causes lots of sys_ptrace access
being required for domains, that I do not believe need it.

They need DAC_READ_SEARCH because they are trying to read content that
is owned by a different UID.  The SYS_PTRACE stuff was put in to
prevent apps from reading process memory information stored in /proc.

I think this is a bug in the kernel.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk85hYIACgkQrlYvE4MpobPnsACcDXrEipv+rkdDa1/E4TwQdrtj
z9IAn2yCwDDdAvUIxiSugzMJQZUzswJ1
=Tfwm
-----END PGP SIGNATURE-----

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

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

end of thread, other threads:[~2012-02-21 21:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-13 21:49 Currently the kernel is interpreting reading the link file on /proc/PID/exe as sys_ptrace for a different UID Daniel J Walsh
2012-02-13 23:09 ` Stephen Smalley
2012-02-14 13:57   ` Daniel J Walsh
2012-02-21 20:36     ` Stephen Smalley
2012-02-21 21:54       ` Daniel J Walsh

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.