mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-19 02:41:00 +03:00
f74b821a66
ZFS allows for specific permissions to be delegated to normal users with the `zfs allow` and `zfs unallow` commands. In addition, non- privileged users should be able to run all of the following commands: * zpool [list | iostat | status | get] * zfs [list | get] Historically this functionality was not available on Linux. In order to add it the secpolicy_* functions needed to be implemented and mapped to the equivalent Linux capability. Only then could the permissions on the `/dev/zfs` be relaxed and the internal ZFS permission checks used. Even with this change some limitations remain. Under Linux only the root user is allowed to modify the namespace (unless it's a private namespace). This means the mount, mountpoint, canmount, unmount, and remount delegations cannot be supported with the existing code. It may be possible to add this functionality in the future. This functionality was validated with the cli_user and delegation test cases from the ZFS Test Suite. These tests exhaustively verify each of the supported permissions which can be delegated and ensures only an authorized user can perform it. Two minor bug fixes were required for test-running.py. First, the Timer() object cannot be safely created in a `try:` block when there is an unconditional `finally` block which references it. Second, when running as a normal user also check for scripts using the both the .ksh and .sh suffixes. Finally, existing users who are simulating delegations by setting group permissions on the /dev/zfs device should revert that customization when updating to a version with this change. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #362 Closes #434 Closes #4100 Closes #4394 Closes #4410 Closes #4487
28 lines
1.1 KiB
Makefile
28 lines
1.1 KiB
Makefile
SUBDIRS = ia32 rpc sys util
|
|
|
|
libspldir = $(includedir)/libspl
|
|
libspl_HEADERS = \
|
|
$(top_srcdir)/lib/libspl/include/assert.h \
|
|
$(top_srcdir)/lib/libspl/include/atomic.h \
|
|
$(top_srcdir)/lib/libspl/include/attr.h \
|
|
$(top_srcdir)/lib/libspl/include/devid.h \
|
|
$(top_srcdir)/lib/libspl/include/libdevinfo.h \
|
|
$(top_srcdir)/lib/libspl/include/libgen.h \
|
|
$(top_srcdir)/lib/libspl/include/libshare.h \
|
|
$(top_srcdir)/lib/libspl/include/limits.h \
|
|
$(top_srcdir)/lib/libspl/include/locale.h \
|
|
$(top_srcdir)/lib/libspl/include/note.h \
|
|
$(top_srcdir)/lib/libspl/include/statcommon.h \
|
|
$(top_srcdir)/lib/libspl/include/stdio.h \
|
|
$(top_srcdir)/lib/libspl/include/stdlib.h \
|
|
$(top_srcdir)/lib/libspl/include/string.h \
|
|
$(top_srcdir)/lib/libspl/include/strings.h \
|
|
$(top_srcdir)/lib/libspl/include/stropts.h \
|
|
$(top_srcdir)/lib/libspl/include/synch.h \
|
|
$(top_srcdir)/lib/libspl/include/thread.h \
|
|
$(top_srcdir)/lib/libspl/include/tzfile.h \
|
|
$(top_srcdir)/lib/libspl/include/ucred.h \
|
|
$(top_srcdir)/lib/libspl/include/umem.h \
|
|
$(top_srcdir)/lib/libspl/include/unistd.h \
|
|
$(top_srcdir)/lib/libspl/include/zone.h
|