!388 Add landlock support
Merge Pull Request from: @yiyangyang Landlock: unprivileged access control The goal of Landlock is to enable to restrict ambient rights (e.g. global filesystem access) for a set of processes. Because Landlock is a stackable LSM, it makes possible to create safe security sandboxes as new security layers in addition to the existing system-wide access-controls. This kind of sandbox is expected to help mitigate the security impact of bugs or unexpected/malicious behaviors in user space applications. Landlock empowers any process, including unprivileged ones, to securely restrict themselves. This feature involves 14 patches. Related links are as follows: 1. landlock: Add object management https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=90945448e9830aa1b39d7acaa4e0724a001e2ff8 2. landlock: Add ruleset and domain management https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ae271c1b14de343b888e77f74f640e3dcbdeb4c9 3. landlock: Set up the security framework and manage credentials https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=385975dca53eb41031d0cbd1de318eb1bc5d6bb9 4. landlock: Add ptrace restrictions https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=afe81f754117dd96853677c5cb815f49abef0ba0 5. LSM: Infrastructure management of the superblock https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1aea7808372eee4ad01f98e064c88c57f1e94855 6. fs,security: Add sb_delete hook https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=83e804f0bfee2247b1c0aa64845c81a38562da7a 7. landlock: Support filesystem access-control https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cb2c7d1a1776057c9a1f48ed1250d85e94d4850d 8. landlock: Add syscall implementations https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=265885daf3e5082eb9f6e2a23bdbf9ba4456a21b 9. arch: Wire up Landlock syscalls https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a49f4f81cb48925e8d7cbd9e59068f516e984144 10. selftests/landlock: Add user space tests https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e1199815b47be83346c03e20a3de76f934e4bb34 11. samples/landlock: Add a sandbox manager example https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ba84b0bf5a164f0f523656c1e37568c30f3f3303 12. landlock: Add user and kernel documentation https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5526b450834331d9196cae26acef0bfd5afd9fc4 13. landlock: Enable user space to infer supported features https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3532b0b4352ce79400b0aa68414f1a0fc422b920 14. landlock: Use square brackets around "landlock-ruleset" https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=aea0b9f2486da8497f35c7114b764bf55e17c7ea Link:https://gitee.com/openeuler/kernel/pulls/388 Reviewed-by: Jialin Zhang <zhangjialin11@huawei.com> Signed-off-by: Jialin Zhang <zhangjialin11@huawei.com>
Showing
include/uapi/linux/landlock.h
0 → 100644
samples/landlock/.gitignore
0 → 100644
samples/landlock/Makefile
0 → 100644
samples/landlock/sandboxer.c
0 → 100644
security/landlock/Kconfig
0 → 100644
security/landlock/Makefile
0 → 100644
security/landlock/common.h
0 → 100644
security/landlock/cred.c
0 → 100644
security/landlock/cred.h
0 → 100644
security/landlock/fs.c
0 → 100644
security/landlock/fs.h
0 → 100644
security/landlock/limits.h
0 → 100644
security/landlock/object.c
0 → 100644
security/landlock/object.h
0 → 100644
security/landlock/ptrace.c
0 → 100644
security/landlock/ptrace.h
0 → 100644
security/landlock/ruleset.c
0 → 100644
security/landlock/ruleset.h
0 → 100644
security/landlock/setup.c
0 → 100644
security/landlock/setup.h
0 → 100644
security/landlock/syscalls.c
0 → 100644
想要评论请 注册 或 登录