mirror of
https://github.com/torvalds/linux.git
synced 2026-03-14 02:06:15 +01:00
selinux/stable-5.9 PR 20200803
-----BEGIN PGP SIGNATURE-----
iQJIBAABCAAyFiEES0KozwfymdVUl37v6iDy2pc3iXMFAl8okmsUHHBhdWxAcGF1
bC1tb29yZS5jb20ACgkQ6iDy2pc3iXMaRA//XO7JKJEyLcpqRzhQP/QY50JXdQtE
c9vKeb7y4wlfbTozRgjBN3Xj+tFbqANzX/rVsR1aKV+hExyEuUfNZ0Fl8MbPEccQ
1RUCW2808/YRTYsl0g0DDZsc+vxVosfouk91pZfld9ZRnZbrNTGXFP7vuVyFKdBy
wBX1FCL9q31wLc8Jk7f6otSbBvSCG0YXjkkxEM7LQx3oQ59s8dfOed41kDGpLoNk
TS5BN/W3uuYEDIsIwTRZjU4h42dpc/wbxVMJhBg85rU/2bF4u5sDs2qgwqaa1tXs
aRDH5J+eBMZRCkF4shxlDrrOWeXvEEtal9yYzQUx664tWDjZazoTLctCAe3PWI1i
q61cG8PXw/5/oB6RyvPkRMLc5pU8P6/Xdfg6R6kOsGSq8bj+g30J6jqGXnW9FIVr
5rIaooiw19vqH+ASVuq9oLmhuWJQyn6ImFqOkREJFWVaqufglWw9RWDCGFsLq9Tr
w6HbA9UYCoWpdQBfRXpa086sSQm1wuCP39fIcY64uHpR5gPJuzyd8Tswz3tbEAtg
v7vgIRtBpghhdcBLzIJgSIXJKR7W/Y49eFwNf3x0OTSeAIia6Z9paaQjXYl71I9V
6oUiQgVE3lX2SkgMbOK2V5UsjbVkpjjv7MWxdm0mPQCU0Fmb8W2FN/wVR7FBlCZc
yhde+bs4zTmPNFw=
=ocPe
-----END PGP SIGNATURE-----
Merge tag 'selinux-pr-20200803' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux
Pull selinux updates from Paul Moore:
"Beyond the usual smattering of bug fixes, we've got three small
improvements worth highlighting:
- improved SELinux policy symbol table performance due to a reworking
of the insert and search functions
- allow reading of SELinux labels before the policy is loaded,
allowing for some more "exotic" initramfs approaches
- improved checking an error reporting about process
class/permissions during SELinux policy load"
* tag 'selinux-pr-20200803' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux:
selinux: complete the inlining of hashtab functions
selinux: prepare for inlining of hashtab functions
selinux: specialize symtab insert and search functions
selinux: Fix spelling mistakes in the comments
selinux: fixed a checkpatch warning with the sizeof macro
selinux: log error messages on required process class / permissions
scripts/selinux/mdp: fix initial SID handling
selinux: allow reading labels before policy is loaded
This commit is contained in:
commit
49e917deeb
15 changed files with 258 additions and 166 deletions
|
|
@ -67,8 +67,14 @@ int main(int argc, char *argv[])
|
|||
|
||||
initial_sid_to_string_len = sizeof(initial_sid_to_string) / sizeof (char *);
|
||||
/* print out the sids */
|
||||
for (i = 1; i < initial_sid_to_string_len; i++)
|
||||
fprintf(fout, "sid %s\n", initial_sid_to_string[i]);
|
||||
for (i = 1; i < initial_sid_to_string_len; i++) {
|
||||
const char *name = initial_sid_to_string[i];
|
||||
|
||||
if (name)
|
||||
fprintf(fout, "sid %s\n", name);
|
||||
else
|
||||
fprintf(fout, "sid unused%d\n", i);
|
||||
}
|
||||
fprintf(fout, "\n");
|
||||
|
||||
/* print out the class permissions */
|
||||
|
|
@ -126,9 +132,16 @@ int main(int argc, char *argv[])
|
|||
#define OBJUSERROLETYPE "user_u:object_r:base_t"
|
||||
|
||||
/* default sids */
|
||||
for (i = 1; i < initial_sid_to_string_len; i++)
|
||||
fprintf(fout, "sid %s " SUBJUSERROLETYPE "%s\n",
|
||||
initial_sid_to_string[i], mls ? ":" SYSTEMLOW : "");
|
||||
for (i = 1; i < initial_sid_to_string_len; i++) {
|
||||
const char *name = initial_sid_to_string[i];
|
||||
|
||||
if (name)
|
||||
fprintf(fout, "sid %s ", name);
|
||||
else
|
||||
fprintf(fout, "sid unused%d\n", i);
|
||||
fprintf(fout, SUBJUSERROLETYPE "%s\n",
|
||||
mls ? ":" SYSTEMLOW : "");
|
||||
}
|
||||
fprintf(fout, "\n");
|
||||
|
||||
#define FS_USE(behavior, fstype) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue