Commit graph

5 commits

Author SHA1 Message Date
Dmitry Muhomor
fd3f9648e3 selinux: cache zygote context types when loading policy
They are used by the next commit.
2024-11-30 02:14:49 +01:00
Ksawlii
6af9744bf7 security: selinux: Enable Samsung SELinux 2024-11-24 00:43:04 +01:00
Paul Moore
49c852ee24 selinux: improve error checking in sel_write_load()
[ Upstream commit 42c773238037c90b3302bf37a57ae3b5c3f6004a ]

Move our existing input sanity checking to the top of sel_write_load()
and add a check to ensure the buffer size is non-zero.

Move a local variable initialization from the declaration to before it
is used.

Minor style adjustments.

Reported-by: Sam Sun <samsun1006219@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
[cascardo: keep fsi initialization at its declaration point as it is used earlier]
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:22:01 +01:00
fluffball3
da38a69671 security: selinux: Disable Samsung SELinux
Change-Id: I85f450d1a4b93e150e7df90a7471b38fa027d673
2024-11-17 17:07:10 +01:00
Gabriel2392
7ed7ee9edf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00