[6/8] manual: Document default AT_SECURE handling for system-wide tunables
Checks
Commit Message
A system-wide tunable without an onlysecure/nonsecure/anysecure prefix
defaults to "nonsecure", i.e. it is not applied to AT_SECURE processes.
This is a deliberate, conservative default but was not documented.
---
manual/tunables.texi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
Comments
Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
> +every setuid or setgid program. The file is therefore trusted to the same
Perhaps s/The file/The config file/ to make it less ambiguous. On first
reading (the diff, so out of context), I couldn't figure out why you say
the cache file should be as secure as the cache file...
LGTM otherwise
Reviewed-by: DJ Delorie <dj@redhat.com>
On 08/07/26 23:25, DJ Delorie wrote:
>
> Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
>> +every setuid or setgid program. The file is therefore trusted to the same
>
> Perhaps s/The file/The config file/ to make it less ambiguous. On first
> reading (the diff, so out of context), I couldn't figure out why you say
> the cache file should be as secure as the cache file...
Ack, I fixed locally.
>
> LGTM otherwise
> Reviewed-by: DJ Delorie <dj@redhat.com>
>
@@ -143,6 +143,22 @@ processes.
@end table
+When none of the @code{onlysecure}, @code{nonsecure} or @code{anysecure}
+prefixes is given, a tunable behaves as if @code{nonsecure} had been
+specified: it applies only to processes that are not AT_SECURE. Use
+@code{anysecure} or @code{onlysecure} to affect AT_SECURE (setuid,
+setgid, or capability-elevated) processes.
+
+The @code{GLIBC_TUNABLES} environment variable is ignored entirely for
+AT_SECURE processes, so the system-wide file is the only way to set a
+tunable for such a process. A tunable applied this way is not subject to
+any per-tunable security screening, so @code{onlysecure} and
+@code{anysecure} must be used deliberately: they can enable
+security-sensitive tunables (for example @code{glibc.malloc.check}) in
+every setuid or setgid program. The file is therefore trusted to the same
+degree as @file{/etc/ld.so.cache} and must only be writable by the system
+administrator.
+
Filters make the system-wide tunables only affect certain programs.
This allows having a non-overridable default for most of the system
but a different, overridable, value for certain programs that might