apparmor: convert xmatch to using the new shared policydb struct
continue permission unification by converting xmatch to use the policydb struct that is used by the other profile dfas. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#define AA_CLASS_MOUNT 7
|
||||
#define AA_CLASS_PTRACE 9
|
||||
#define AA_CLASS_SIGNAL 10
|
||||
#define AA_CLASS_XMATCH 11
|
||||
#define AA_CLASS_NET 14
|
||||
#define AA_CLASS_LABEL 16
|
||||
#define AA_CLASS_POSIX_MQUEUE 17
|
||||
|
||||
@@ -113,7 +113,6 @@ struct aa_data {
|
||||
* @attach: human readable attachment string
|
||||
* @xmatch: optional extended matching for unconfined executables names
|
||||
* @xmatch_len: xmatch prefix len, used to determine xmatch priority
|
||||
* @xmatch_perms: precomputed permissions for the xmatch DFA indexed by state
|
||||
* @audit: the auditing mode of the profile
|
||||
* @mode: the enforcement mode of the profile
|
||||
* @path_flags: flags controlling path generation behavior
|
||||
@@ -148,9 +147,8 @@ struct aa_profile {
|
||||
const char *rename;
|
||||
|
||||
const char *attach;
|
||||
struct aa_dfa *xmatch;
|
||||
struct aa_policydb xmatch;
|
||||
unsigned int xmatch_len;
|
||||
struct aa_perms *xmatch_perms;
|
||||
|
||||
enum audit_mode audit;
|
||||
long mode;
|
||||
|
||||
Reference in New Issue
Block a user