From: Aaron Sowry <aaron@cendio.se>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: selinux@tycho.nsa.gov
Subject: Re: SELinux policy regarding LD_LIBRARY_PATH
Date: Thu, 04 Aug 2011 15:39:56 +0200 [thread overview]
Message-ID: <4E3AA12C.9000704@cendio.se> (raw)
In-Reply-To: <1312463365.20973.21.camel@moss-pluto>
[-- Attachment #1: Type: text/plain, Size: 632 bytes --]
> However, the behavior you are seeing might not be related to SELinux, as
> Linux also enables AT_SECURE if the uid or gid changes across execve (to
> be precise, if the effective identity is not equal to the real identity
> after the credential change, as this was the legacy logic from libc).
So if I understand correctly, SELinux expands on AT_SECURE to sanitize
environment variables across context changes instead of just
setgid/setuid. Makes sense; you live and learn.
In this case I believe it was SELinux performing the sanitization as
disabling it solved the problem, but this is helpful to know.
/Aaron
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
next prev parent reply other threads:[~2011-08-04 13:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-04 12:14 SELinux policy regarding LD_LIBRARY_PATH Aaron Sowry
2011-08-04 12:50 ` Sven Vermeulen
2011-08-04 13:06 ` Aaron Sowry
2011-08-04 13:09 ` Stephen Smalley
2011-08-04 13:39 ` Aaron Sowry [this message]
2011-08-04 13:47 ` Stephen Smalley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E3AA12C.9000704@cendio.se \
--to=aaron@cendio.se \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.