From: Daniel J Walsh <dwalsh@redhat.com>
To: Stephen Smalley <stephen.smalley@gmail.com>
Cc: Hasan Rezaul-CHR010 <CHR010@motorola.com>,
Stephen Smalley <sds@tycho.nsa.gov>,
SE Linux <selinux@tycho.nsa.gov>
Subject: Re: Setting login context for multiple Linux users using single semanage command...
Date: Tue, 29 Jul 2008 09:33:56 -0400 [thread overview]
Message-ID: <488F1C44.6050308@redhat.com> (raw)
In-Reply-To: <1216692539.17786.28.camel@sulphur>
Stephen Smalley wrote:
> On Mon, 2008-07-21 at 13:41 -0400, Hasan Rezaul-CHR010 wrote:
>> Hi All,
>>
>> If I wanted to map multiple Linux users (Test1, Test2, and Test3), to a
>> single SELinux user (staff_u),
>>
>> Can I use a single semanage command to do this, instead of executing
>> multiple semanage commands?
>>
>> In other words,instead of executing:
>> semanage login -a -s staff_u Test1
>> semanage login -a -s staff_u Test2
>> semanage login -a -s staff_u Test3
>>
>> Can I do something like: semanage login -a -s staff_u 'Test1 Test2
>> Test3'
>>
>> Thanks as always for your help,
>
> Abstractly, that would be possible to do, but I doubt the semanage
> command today supports that syntax. The underpinnings of it
> (libsemanage) certainly would support applying several changes in the
> same transaction, just as you can install multiple policy modules on the
> same transaction using semodule. So I'd call this a deficiency of the
> semanage UI and patches of course are always welcome. I think we'd want
> something clearer though than just the quoted list.
>
>
>
> --
> 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.
A mere matter of coding. I have begun doing some of this with booleans.
I think the tool needs a way to set multiple and extract the custom
settings so that they can be sent to other machines.
IE Extract all customizations from this machine and make all other
machines match.
--
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.
prev parent reply other threads:[~2008-07-29 13:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-17 18:47 Critical bug in semanage Daniel J Walsh
2008-07-18 15:36 ` Joshua Brindle
2008-07-18 17:30 ` Stephen Smalley
2008-07-18 17:33 ` Daniel J Walsh
2008-07-21 17:41 ` Setting login context for multiple Linux users using single semanage command Hasan Rezaul-CHR010
2008-07-22 2:08 ` Stephen Smalley
2008-07-29 13:33 ` Daniel J Walsh [this message]
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=488F1C44.6050308@redhat.com \
--to=dwalsh@redhat.com \
--cc=CHR010@motorola.com \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=stephen.smalley@gmail.com \
/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.