From: Stephen Smalley <sds@tycho.nsa.gov>
To: Ted Toth <txtoth@gmail.com>, SELinux <selinux@tycho.nsa.gov>
Subject: Re: string_to_av_perm behavior
Date: Fri, 22 May 2015 12:20:50 -0400 [thread overview]
Message-ID: <555F5762.8040601@tycho.nsa.gov> (raw)
In-Reply-To: <CAFPpqQHQ5n=4chF3hCbQMQfU6yZ9KgjoVyotGCg6FA1RDdtxiw@mail.gmail.com>
On 05/22/2015 12:12 PM, Ted Toth wrote:
> ./avperm
> 1 - av_perm 0
> security class: 66
> class db_tuple av select
> 2 - av_perm 8
> 3 - av_perm 8
>
> why does the first call to string_to_av_perm return 0 something seem wrong here.
You need to call string_to_security_class() first.
The hardcoded #defines in flask.h and av_permissions.h are deprecated;
you'll get compiler warnings with a recent version of libselinux when
including them.
next prev parent reply other threads:[~2015-05-22 16:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-22 16:12 string_to_av_perm behavior Ted Toth
2015-05-22 16:20 ` Stephen Smalley [this message]
2015-05-22 16:23 ` Stephen Smalley
2015-05-22 16:26 ` Ted Toth
2015-05-22 16:36 ` Ted Toth
2015-05-22 16:39 ` Stephen Smalley
2015-05-22 16:47 ` Ted Toth
2015-05-22 16:58 ` 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=555F5762.8040601@tycho.nsa.gov \
--to=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=txtoth@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.