mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 07:57:43 +00:00
package/polkit: add polkitd user and appropriate permissions
The polkit daemon requires a polkitd user with permission to access the following directories: - /etc/polkit-1 - /usr/share/polkit-1 The /usr/bin/pkexec file must be owned by owned by root with the permissions 4755 or else the error "pkexec must be setuid root" is thrown when it's ran. Signed-off-by: Adam Duskett <Aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
0db459fe3d
commit
2df6cf4703
@ -29,4 +29,14 @@ else
|
|||||||
POLKIT_CONF_OPTS += --with-authfw=shadow
|
POLKIT_CONF_OPTS += --with-authfw=shadow
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
define POLKIT_USERS
|
||||||
|
polkitd -1 polkitd -1 * - - - Polkit Daemon
|
||||||
|
endef
|
||||||
|
|
||||||
|
define POLKIT_PERMISSIONS
|
||||||
|
/etc/polkit-1 r 750 root polkitd - - - - -
|
||||||
|
/usr/share/polkit-1 r 750 root polkitd - - - - -
|
||||||
|
/usr/bin/pkexec f 4755 root root - - - - -
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user