Stub kernel booleans API
I'm not sure if I'll be layering those on top of dbase... maybe..
libsemanage/include/semanage/booleans_kernel.h +40 -0
@@ -0,0 +1,40 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ + +#ifndef _SEMANAGE_BOOLEANS_KERNEL_H_ +#define _SEMANAGE_BOOLEANS_KERNEL_H_ + +#include <stddef.h> +#include <semanage/handle.h> +#include <semanage/boolean_record.h> + +extern int semanage_bool_set_kernel ( +semanage_handle_t * handle, +semanage_bool_key_t * key, +semanage_bool_t * data); + +extern int semanage_bool_query_kernel ( +semanage_handle_t * handle, +semanage_bool_key_t * key, +semanage_bool_t ** response); + +extern int semanage_bool_exists_kernel ( +semanage_handle_t * handle, +semanage_bool_key_t * key, +int * response); + +extern int semanage_bool_count_kernel ( +semanage_handle_t * handle, +unsigned int * response); + +extern int semanage_bool_iterate_kernel ( +semanage_handle_t * handle, +int (*handler) (semanage_bool_t * record, +void * varg), +void * handler_arg); + +extern int semanage_bool_list_kernel ( +semanage_handle_t * handle, +semanage_bool_t *** records, +size_t * size); + +#endif
libsemanage/src/booleans_kernel.c +78 -0
78 lines not on this page · raw message
Quoted 1 line · Ivan Gyurdiev
I'm not sure if I'll be layering those on top of dbase... maybe..
I don't think "kernel" is what you want here, as the real distinction is between persistent local modifications to booleans and runtime/active/current modifications to booleans. The booleans themselves may be kernel or userspace policy constructs in either case.
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 9 lines
Quoted 3 lines
I'm not sure if I'll be layering those on top of dbase... maybe..
I don't think "kernel" is what you want here, as the real distinction is between persistent local modifications to booleans and runtime/active/current modifications to booleans. The booleans themselves may be kernel or userspace policy constructs in either case.
I like "runtime" or "active" - pick one... will resend patch.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.