policy_unpack.c (73f488cd903938e78979d50e081a0314ad142351) | policy_unpack.c (56974a6fcfef69ee0825bd66ed13e92070ac5224) |
---|---|
1/* 2 * AppArmor security module 3 * 4 * This file contains AppArmor functions for unpacking policy loaded from 5 * userspace. 6 * 7 * Copyright (C) 1998-2008 Novell/SUSE 8 * Copyright 2009-2010 Canonical Ltd. --- 23 unchanged lines hidden (view full) --- 32 33#define K_ABI_MASK 0x3ff 34#define FORCE_COMPLAIN_FLAG 0x800 35#define VERSION_LT(X, Y) (((X) & K_ABI_MASK) < ((Y) & K_ABI_MASK)) 36#define VERSION_GT(X, Y) (((X) & K_ABI_MASK) > ((Y) & K_ABI_MASK)) 37 38#define v5 5 /* base version */ 39#define v6 6 /* per entry policydb mediation check */ | 1/* 2 * AppArmor security module 3 * 4 * This file contains AppArmor functions for unpacking policy loaded from 5 * userspace. 6 * 7 * Copyright (C) 1998-2008 Novell/SUSE 8 * Copyright 2009-2010 Canonical Ltd. --- 23 unchanged lines hidden (view full) --- 32 33#define K_ABI_MASK 0x3ff 34#define FORCE_COMPLAIN_FLAG 0x800 35#define VERSION_LT(X, Y) (((X) & K_ABI_MASK) < ((Y) & K_ABI_MASK)) 36#define VERSION_GT(X, Y) (((X) & K_ABI_MASK) > ((Y) & K_ABI_MASK)) 37 38#define v5 5 /* base version */ 39#define v6 6 /* per entry policydb mediation check */ |
40#define v7 7 /* full network masking */ | 40#define v7 7 41#define v8 8 /* full network masking */ |
41 42/* 43 * The AppArmor interface treats data as a type byte followed by the 44 * actual data. The interface has the notion of a a named entry 45 * which has a name (AA_NAME typecode followed by name string) followed by 46 * the entries typecode and data. Named types allow for optional 47 * elements and extensions to be added and tested for without breaking 48 * backwards compatibility. --- 1016 unchanged lines hidden --- | 42 43/* 44 * The AppArmor interface treats data as a type byte followed by the 45 * actual data. The interface has the notion of a a named entry 46 * which has a name (AA_NAME typecode followed by name string) followed by 47 * the entries typecode and data. Named types allow for optional 48 * elements and extensions to be added and tested for without breaking 49 * backwards compatibility. --- 1016 unchanged lines hidden --- |