From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <555F5762.8040601@tycho.nsa.gov> Date: Fri, 22 May 2015 12:20:50 -0400 From: Stephen Smalley MIME-Version: 1.0 To: Ted Toth , SELinux Subject: Re: string_to_av_perm behavior References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: 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.