mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
selinux: convert cond_list to array
Since it is fixed-size after allocation and we know the size beforehand, using a plain old array is simpler and more efficient. While there, also fix signedness of some related variables/parameters. Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
committed by
Paul Moore
parent
8d269a8e2a
commit
60abd3181d
@@ -14,12 +14,10 @@
|
||||
#include "security.h"
|
||||
|
||||
int security_get_bools(struct selinux_state *state,
|
||||
int *len, char ***names, int **values);
|
||||
u32 *len, char ***names, int **values);
|
||||
|
||||
int security_set_bools(struct selinux_state *state,
|
||||
int len, int *values);
|
||||
int security_set_bools(struct selinux_state *state, u32 len, int *values);
|
||||
|
||||
int security_get_bool_value(struct selinux_state *state,
|
||||
int index);
|
||||
int security_get_bool_value(struct selinux_state *state, u32 index);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user