mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-25 14:36:33 +01:00
YubiKey support for sudo
- the yubikey is a u2f usb device, so usb abstraction is required - the authentication with yubikey against sudo happens as challenge response, which is why rw on the challenge file is required - the elevator first checks whether a .yubico folder exists, which is why reading the folder (but not the files within) is required
This commit is contained in:
parent
d406596124
commit
b8c052201b
1 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
include <abstractions/consoles>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/wutmp>
|
||||
include <abstractions/devices-usb>
|
||||
|
||||
capability audit_write,
|
||||
capability dac_override,
|
||||
|
@ -51,6 +52,10 @@
|
|||
|
||||
owner @{HOME}/.sudo_as_admin_successful rw,
|
||||
|
||||
# yubikey support
|
||||
owner @{HOME}/.yubico/challenge-* rw,
|
||||
@{HOME}/.yubico/ r,
|
||||
|
||||
@{run}/faillock/ rw,
|
||||
@{run}/faillock/@{user} rwk,
|
||||
owner @{run}/sudo/ rw,
|
||||
|
|
Loading…
Reference in a new issue