• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright (C) 2005 Red Hat, Inc. */
2 
3 #ifndef _SEMANAGE_FCONTEXTS_POLICY_H_
4 #define _SEMANAGE_FCONTEXTS_POLICY_H_
5 
6 #include <semanage/fcontext_record.h>
7 #include <semanage/handle.h>
8 
9 extern int semanage_fcontext_query(semanage_handle_t * handle,
10 				   const semanage_fcontext_key_t * key,
11 				   semanage_fcontext_t ** response);
12 
13 extern int semanage_fcontext_exists(semanage_handle_t * handle,
14 				    const semanage_fcontext_key_t * key,
15 				    int *response);
16 
17 extern int semanage_fcontext_count(semanage_handle_t * handle,
18 				   unsigned int *response);
19 
20 extern int semanage_fcontext_iterate(semanage_handle_t * handle,
21 				     int (*handler) (const semanage_fcontext_t *
22 						     record, void *varg),
23 				     void *handler_arg);
24 
25 extern int semanage_fcontext_list(semanage_handle_t * handle,
26 				  semanage_fcontext_t *** records,
27 				  unsigned int *count);
28 
29 extern int semanage_fcontext_list_homedirs(semanage_handle_t * handle,
30 				  semanage_fcontext_t *** records,
31 				  unsigned int *count);
32 
33 #endif
34