2024-11-26 17:53:35 +00:00
|
|
|
(define-module (operating-systems buer privilege)
|
2024-08-22 03:03:41 +00:00
|
|
|
#:use-module (gnu packages admin)
|
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
#:use-module (gnu system privilege)
|
|
|
|
#:use-module (guix gexp)
|
|
|
|
|
|
|
|
#:export (authentication
|
|
|
|
file-systems
|
|
|
|
network))
|
|
|
|
|
|
|
|
(define authentication
|
|
|
|
(list (privileged-program
|
|
|
|
(program (file-append shadow "/bin/passwd"))
|
|
|
|
(setuid? #t))
|
|
|
|
(privileged-program
|
|
|
|
(program (file-append shadow "/bin/chfn"))
|
|
|
|
(setuid? #t))
|
|
|
|
(privileged-program
|
|
|
|
(program (file-append shadow "/bin/sg"))
|
|
|
|
(setuid? #t))
|
|
|
|
(privileged-program
|
|
|
|
(program (file-append shadow "/bin/su"))
|
|
|
|
(setuid? #t))
|
|
|
|
(privileged-program
|
|
|
|
(program (file-append shadow "/bin/newgrp"))
|
|
|
|
(setuid? #t))
|
|
|
|
(privileged-program
|
|
|
|
(program (file-append shadow "/bin/newuidmap"))
|
|
|
|
(setuid? #t))
|
|
|
|
(privileged-program
|
|
|
|
(program (file-append shadow "/bin/newgidmap"))
|
|
|
|
(setuid? #t))))
|
|
|
|
|
|
|
|
(define file-systems
|
|
|
|
(list (privileged-program
|
|
|
|
(program (file-append fuse "/bin/fusermount3"))
|
|
|
|
(setuid? #t))
|
|
|
|
(privileged-program
|
|
|
|
(program (file-append fuse-2 "/bin/fusermount"))
|
|
|
|
(setuid? #t))
|
|
|
|
(privileged-program
|
|
|
|
(program (file-append util-linux "/bin/mount"))
|
|
|
|
(setuid? #t))
|
|
|
|
(privileged-program
|
|
|
|
(program (file-append util-linux "/bin/umount"))
|
|
|
|
(setuid? #t))))
|
|
|
|
|
|
|
|
(define network
|
|
|
|
(list (privileged-program
|
|
|
|
(program (file-append inetutils "/bin/ping"))
|
2024-10-21 00:02:54 +00:00
|
|
|
(capabilities "cap_net_raw=ep"))
|
2024-08-22 03:03:41 +00:00
|
|
|
(privileged-program
|
|
|
|
(program (file-append inetutils "/bin/ping6"))
|
2024-10-21 00:02:54 +00:00
|
|
|
(capabilities "cap_net_raw=ep"))))
|