Debian Codegraph @

libsemanage/man/man3/semanage_del.3

raw
1 .TH semanage_del 3 "16 March 2006" "[email protected]" "Libsemanage API documentation"
2
3 .SH "NAME"
4 semanage_del \- SELinux Management API
5
6 .SH "SYNOPSIS"
7 The following delete function is supported for any semanage record.
8 .br
9 Replace the function and object name as necessary.
10
11 .B extern int DELETE_FUNCTION (
12 .br
13 .BI " semanage_handle_t *" handle ","
14 .br
15 .BI " const semanage_OBJECT_key_t *" key ");"
16
17 .SH "DESCRIPTION"
18 .TP
19 .B Behavior:
20 The delete function will remove the object corresponding to the provided key from the local store. If no match is found, no action is taken. Changes will become permanent when
21 .BR semanage_commit "(3)"
22 is invoked. Additional checks may be performed at that time to ensure the system is left in a valid state.
23
24 .TP
25 .B Parameters:
26 The
27 .I handle
28 is used to track persistent state across semanage calls, and for error reporting. The
29 .I key
30 identifies the
31 .I data
32 object, which will be deleted from the local store. The key is a property of the caller, and will not be stored or modified internally.
33
34 .TP
35 .B Requirements:
36 This function requires an semanage connection to be established (see
37 .BR semanage_connect "(3)"
38 ), and must be executed in a transaction (see
39 .BR semanage_begin_transaction "(3)"
40 ).
41
42 .SH "RETURN VALUE"
43 In case of failure, \-1 is returned, and the semanage error callback is invoked, describing the error.
44 Otherwise 0 is returned.
45
46 .SH "SEE ALSO"
47 .BR semanage_handle_create "(3), " semanage_begin_transaction "(3), " semanage_connect "(3), " semanage_commit "(3). "