All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Brindle <jbrindle@tresys.com>
To: gyurdiev@redhat.com
Cc: selinux@tycho.nsa.gov
Subject: Re: [ libsepol 3/6] Users
Date: Thu, 21 Jul 2005 14:15:14 -0400	[thread overview]
Message-ID: <42DFE632.1080001@tresys.com> (raw)
In-Reply-To: <1121967866.9844.32.camel@celtics.boston.redhat.com>

Ivan Gyurdiev wrote:

>The following patch is intended to replace
>genusers.c (but not yet). It provides functions 
>to add, delete and load users into a policydb object.
>It uses a structure (sepol_uinfo_t) as the
>higher level representation for a user, and
>takes out the parsing.
>
>libsepol-2.1-users.diff
>
>Disclaimer 1:
>The role list must be NULL terminated. 
>
>  
>
The libsemanage api I'm writing right now has num_roles, IMO better than 
null termination in that it's easier to make mistakes with null termination

struct semanage_user {
        char *name;             /* Key */
        struct semanage_role **roles;
        int num_roles;
        struct semanage_mls *mls;
}

>Disclaimer 2:
>Not sure MLS processing is correct - please
>take a look.
>  
>
I've been talking to the TCS guys while here about the right thing to do 
with MLS so the libsemanage api should be correct.



--
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.

  reply	other threads:[~2005-07-21 18:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-21 17:44 [ libsepol 3/6] Users Ivan Gyurdiev
2005-07-21 18:15 ` Joshua Brindle [this message]
2005-07-21 18:55   ` Ivan Gyurdiev

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=42DFE632.1080001@tresys.com \
    --to=jbrindle@tresys.com \
    --cc=gyurdiev@redhat.com \
    --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.