All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] How to handle glibc-triggered behavior?
@ 2014-12-21 12:15 Sven Vermeulen
  2015-01-12 14:03 ` Christopher J. PeBenito
  2015-12-10 14:59 ` Laurent Bigonville
  0 siblings, 2 replies; 16+ messages in thread
From: Sven Vermeulen @ 2014-12-21 12:15 UTC (permalink / raw)
  To: refpolicy

glibc's malloc implementation, in multithreaded applications, might read
/proc/sys/vm/overcommit_memory to check if the heap can be shrunk or not
(when the allocated memory is part of the non-main arena). That means that
read access to sysctl_vm_t becomes a wide request.

Not granting privileges might result in different memory behavior, where the
system administrator might have tuned/tweaked memory allocations on Linux,
but malloc() ignoring this due to SELinux denying access to the settings.

I'm wondering how to properly tackle this. Granting this on a per-domain
level is probably not manageable, but granting this for all domains (through
the "domain" attribute) might be overshooting.

Are there specific risks that I should take into account when granting read
access to sysctl_vm_t?

Wkr,
	Sven Vermeulen

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

end of thread, other threads:[~2015-12-10 16:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-21 12:15 [refpolicy] How to handle glibc-triggered behavior? Sven Vermeulen
2015-01-12 14:03 ` Christopher J. PeBenito
2015-04-03 13:47   ` Miroslav Grepl
2015-04-03 15:44     ` Dominick Grift
2015-12-10 14:59 ` Laurent Bigonville
2015-12-10 15:11   ` Dominick Grift
2015-12-10 15:13     ` Dominick Grift
2015-12-10 15:44       ` Christopher J. PeBenito
2015-12-10 15:49         ` Dominick Grift
2015-12-10 15:51           ` Dominick Grift
2015-12-10 15:20   ` Dominick Grift
2015-12-10 15:29     ` Dominick Grift
2015-12-10 15:40   ` Dominick Grift
2015-12-10 15:53     ` Christopher J. PeBenito
2015-12-10 15:56       ` Dominick Grift
2015-12-10 16:00       ` Dominick Grift

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.