1semanage_del(3)          Libsemanage API documentation         semanage_del(3)
2
3
4

NAME

6       semanage_del - SELinux Management API
7
8

SYNOPSIS

10       The following delete function is supported for any semanage record.
11       Replace the function and object name as necessary.
12
13       extern int DELETE_FUNCTION (
14            semanage_handle_t *handle,
15            const semanage_OBJECT_key_t *key);
16
17

DESCRIPTION

19       Behavior:
20              The  delete function will remove the object corresponding to the
21              provided key from the local store. If  no  match  is  found,  no
22              action  is  taken.  Changes  will  become  permanent when seman‐
23              age_commit(3) is invoked. Additional checks may be performed  at
24              that time to ensure the system is left in a valid state.
25
26
27       Parameters:
28              The  handle  is  used  to track persistent state across semanage
29              calls, and for error reporting.  The  key  identifies  the  data
30              object, which will be deleted from the local store. The key is a
31              property of the caller, and  will  not  be  stored  or  modified
32              internally.
33
34
35       Requirements:
36              This  function requires an semanage connection to be established
37              (see semanage_connect(3) ), and must be executed in  a  transac‐
38              tion (see semanage_begin_transaction(3) ).
39
40

RETURN VALUE

42       In  case of failure, -1 is returned, and the semanage error callback is
43       invoked, describing the error.  Otherwise 0 is returned.
44
45

SEE ALSO

47       semanage_handle_create(3), semanage_begin_transaction(3), semanage_con‐
48       nect(3), semanage_commit(3).
49
50
51
52ivg2@cornell.edu                 16 March 2006                 semanage_del(3)
Impressum