mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 22:24:11 +08:00
selinux: use consistent type for AV rule specifier
The specifier for avtab keys is always supplied with a type of u16, either as a macro to security_compute_sid() or the member specified of the struct avtab_key. Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
a13479bb3c
commit
7128578c79
@ -248,7 +248,7 @@ struct avtab_node *avtab_search_node(struct avtab *h,
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct avtab_node*
|
struct avtab_node*
|
||||||
avtab_search_node_next(struct avtab_node *node, int specified)
|
avtab_search_node_next(struct avtab_node *node, u16 specified)
|
||||||
{
|
{
|
||||||
struct avtab_node *cur;
|
struct avtab_node *cur;
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ struct avtab_node *avtab_insert_nonunique(struct avtab *h,
|
|||||||
struct avtab_node *avtab_search_node(struct avtab *h,
|
struct avtab_node *avtab_search_node(struct avtab *h,
|
||||||
const struct avtab_key *key);
|
const struct avtab_key *key);
|
||||||
|
|
||||||
struct avtab_node *avtab_search_node_next(struct avtab_node *node, int specified);
|
struct avtab_node *avtab_search_node_next(struct avtab_node *node, u16 specified);
|
||||||
|
|
||||||
#define MAX_AVTAB_HASH_BITS 16
|
#define MAX_AVTAB_HASH_BITS 16
|
||||||
#define MAX_AVTAB_HASH_BUCKETS (1 << MAX_AVTAB_HASH_BITS)
|
#define MAX_AVTAB_HASH_BUCKETS (1 << MAX_AVTAB_HASH_BITS)
|
||||||
|
@ -1694,7 +1694,7 @@ static void filename_compute_type(struct policydb *policydb,
|
|||||||
static int security_compute_sid(u32 ssid,
|
static int security_compute_sid(u32 ssid,
|
||||||
u32 tsid,
|
u32 tsid,
|
||||||
u16 orig_tclass,
|
u16 orig_tclass,
|
||||||
u32 specified,
|
u16 specified,
|
||||||
const char *objname,
|
const char *objname,
|
||||||
u32 *out_sid,
|
u32 *out_sid,
|
||||||
bool kern)
|
bool kern)
|
||||||
|
Loading…
Reference in New Issue
Block a user