• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright (C) 2005 Red Hat, Inc. */
2 
3 #ifndef _SEMANAGE_SEUSERS_POLICY_H_
4 #define _SEMANAGE_SEUSERS_POLICY_H_
5 
6 #include <semanage/seuser_record.h>
7 #include <semanage/handle.h>
8 
9 extern int semanage_seuser_query(semanage_handle_t * handle,
10 				 const semanage_seuser_key_t * key,
11 				 semanage_seuser_t ** response);
12 
13 extern int semanage_seuser_exists(semanage_handle_t * handle,
14 				  const semanage_seuser_key_t * key,
15 				  int *response);
16 
17 extern int semanage_seuser_count(semanage_handle_t * handle,
18 				 unsigned int *response);
19 
20 extern int semanage_seuser_iterate(semanage_handle_t * handle,
21 				   int (*handler) (const semanage_seuser_t *
22 						   record, void *varg),
23 				   void *handler_arg);
24 
25 extern int semanage_seuser_list(semanage_handle_t * handle,
26 				semanage_seuser_t *** records,
27 				unsigned int *count);
28 
29 #endif
30