File: fcontexts_policy.h

package info (click to toggle)
android-platform-external-libselinux 10.0.0%2Br36-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 34,176 kB
  • sloc: ansic: 147,112; python: 25,790; makefile: 1,930; yacc: 1,389; sh: 1,206; lex: 452; xml: 180
file content (33 lines) | stat: -rw-r--r-- 1,020 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* Copyright (C) 2005 Red Hat, Inc. */

#ifndef _SEMANAGE_FCONTEXTS_POLICY_H_
#define _SEMANAGE_FCONTEXTS_POLICY_H_

#include <semanage/fcontext_record.h>
#include <semanage/handle.h>

extern int semanage_fcontext_query(semanage_handle_t * handle,
				   const semanage_fcontext_key_t * key,
				   semanage_fcontext_t ** response);

extern int semanage_fcontext_exists(semanage_handle_t * handle,
				    const semanage_fcontext_key_t * key,
				    int *response);

extern int semanage_fcontext_count(semanage_handle_t * handle,
				   unsigned int *response);

extern int semanage_fcontext_iterate(semanage_handle_t * handle,
				     int (*handler) (const semanage_fcontext_t *
						     record, void *varg),
				     void *handler_arg);

extern int semanage_fcontext_list(semanage_handle_t * handle,
				  semanage_fcontext_t *** records,
				  unsigned int *count);

extern int semanage_fcontext_list_homedirs(semanage_handle_t * handle,
				  semanage_fcontext_t *** records,
				  unsigned int *count);

#endif