[redhat-lspp] Re: API for getting loginuid, for use by newrole and run_init

Stephen Smalley sds at tycho.nsa.gov
Thu Jan 26 14:18:04 UTC 2006


On Wed, 2006-01-25 at 08:27 -0500, Stephen Smalley wrote:
> First cut at patches below.  The Makefile diffs use the same approach
> that was used for the conditional pam support, as policycoreutils
> doesn't use auto* and I'm not inclined to change that.  With these
> patches applied, I can use newrole -r sysadm_r when my Linux user is
> mapped to staff_u via seusers; it properly re-authenticates me as sds.
> Look sane?

These patches went into policycoreutils 1.29.11, which is now in rawhide
as well.  Hence, newrole and run_init in rawhide now re-authenticate
based on the loginuid.

Need to add audit-libs to Requires and audit-libs-devel to BuildRequires
for policycoreutils in the spec file.

I'm not sure whether you can just re-use the USE_AUDIT support I
introduced as part of this patch for your code that adds an audit
message to newrole, or whether you need a separate #ifdef for your
patch.  The issue is that whereas my patch works fine on vanilla
rawhide, I think your patch still depends on patches that are only in
the LSPP kernel.  So either your patch needs to gracefully recover if it
cannot generate an audit message due to an unpatched kernel (so rawhide
users can still use newrole) or we can't build your patch into the
rawhide version of newrole and will need a separately built version for
LSPP testing until the kernel patches go upstream and are included in
rawhide.

-- 
Stephen Smalley
National Security Agency




More information about the redhat-lspp mailing list