Whamcloud - gitweb
LU-11997 ptlrpc: Properly swab ll_fiemap_info_key
[fs/lustre-release.git] / lustre / doc / lctl-nodemap-set-sepol.8
1 .TH lctl-nodemap-set-sepol 8 "2019 Jan 21" Lustre "configuration utilities"
2 .SH NAME
3 lctl-nodemap-set-sepol \- Set SELinux policy info on a nodemap.
4
5 .SH SYNOPSIS
6 .br
7 .B lctl nodemap_set_sepol --name
8 .RI < nodemap >
9 .B --sepol
10 .RI < sepol >
11 .br
12 .SH DESCRIPTION
13 .B nodemap_set_sepol
14 adds SELinux policy info as described by
15 .I sepol
16 to the specified
17 .IR nodemap .
18 The
19 .I sepol
20 string describing the SELinux policy has the following syntax:
21
22 <mode>:<name>:<version>:<hash>
23
24 where:
25 .RS 4
26 - <mode> is a digit telling if SELinux is in Permissive mode (0) or Enforcing
27 mode (1)
28
29 - <name> is the name of the SELinux policy
30
31 - <version> is the version of the SELinux policy
32
33 - <hash> is the computed hash of the binary representation of the policy, as
34 exported in /etc/selinux/<name>/policy/policy.<version>
35 .RE
36
37 The reference
38 .I sepol
39 string can be obtained on a client node known to enforce the right SELinux policy,
40 by calling the l_getsepol command line utility.
41
42 Clients belonging to
43 .I nodemap
44 must enforce the SELinux policy described by
45 .IR sepol ,
46 otherwise they are denied access to the Lustre file system.
47
48 .SH OPTIONS
49 .I nodemap
50 is the name of the nodemap that this SELinux policy info should be associated
51 with.
52
53 .I sepol
54 is the string describing the SELinux policy that clients must enforce. It has
55 to conform to the syntax described above.
56
57 .SH EXAMPLES
58 .nf
59 # lctl nodemap_set_sepol --name restricted --sepol '1:mls:31:40afb76d077c441b69af58cccaaa2ca63641ed6e21b0a887dc21a684f508b78f'
60 # lctl nodemap_set_sepol --name admins --sepol ''
61 .fi
62
63 .SH AVAILABILITY
64 .B lctl
65 is part of the
66 .BR Lustre (7)
67 filesystem package.
68 .SH SEE ALSO
69 .BR lustre (7),
70 .BR lctl-nodemap-activate (8),
71 .BR lctl-nodemap-add (8),
72 .BR lctl-nodemap-del (8),
73 .BR lctl-nodemap-del-range (8),
74 .BR lctl-nodemap-add-idmap (8),
75 .BR lctl-nodemap-del-idmap (8),
76 .BR lctl-nodemap-modify (8)