Skip to content

Commit

Permalink
Various fixes
Browse files Browse the repository at this point in the history
* nvidia-strict: nvidia libraries get argv from /proc/self
* iwd:
  * sends lots of UDP on packet sockets
  * writes to accept_ra and optimistic_dad
  * DNS daemons other than systemd-resolvd may require iwd to use resolvconf
* lynx: now handles brotli'd HTML as well as gzipped
  • Loading branch information
el-remph committed Jan 21, 2025
1 parent 0b3c49d commit 675a754
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apparmor.d/abstractions/nvidia-strict
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
@{PROC}/sys/vm/max_map_count r,
@{PROC}/sys/vm/mmap_min_addr r,
@{PROC}/modules r,
owner @{PROC}/@{pid}/comm r,
owner @{PROC}/@{pid}/{,task/*/}comm r,
owner @{PROC}/@{pid}/cmdline r,

/dev/char/195:@{int} w, # Nvidia graphics devices
/dev/nvidia-modeset rw,
Expand Down
6 changes: 6 additions & 0 deletions apparmor.d/groups/network/iwd
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ profile iwd @{exec_path} {
network netlink raw,
network netlink dgram,
network alg seqpacket,
network packet dgram,

@{exec_path} mr,
@{bin}/resolvconf rPx,

/etc/iwd/{,**} r,
/var/lib/iwd/{,**} rw,
Expand All @@ -33,9 +35,13 @@ profile iwd @{exec_path} {
@{PROC}/sys/net/ipv{4,6}/conf/wlan@{int}/arp_* rw,
@{PROC}/sys/net/ipv{4,6}/conf/wlan@{int}/drop_* rw,
@{PROC}/sys/net/ipv{4,6}/conf/wlan@{int}/ndisc_* rw,
@{PROC}/sys/net/ipv{4,6}/conf/wlan@{int}/accept_ra rw,
@{PROC}/sys/net/ipv{4,6}/conf/wlan@{int}/optimistic_dad rw,
@{PROC}/sys/net/ipv{4,6}/conf/wlp*/arp_* rw,
@{PROC}/sys/net/ipv{4,6}/conf/wlp*/drop_* rw,
@{PROC}/sys/net/ipv{4,6}/conf/wlp*/ndisc_* rw,
@{PROC}/sys/net/ipv{4,6}/conf/wlp*/accept_ra rw,
@{PROC}/sys/net/ipv{4,6}/conf/wlp*/optimistic_dad rw,

/dev/rfkill rw,

Expand Down
3 changes: 1 addition & 2 deletions apparmor.d/profiles-g-l/lynx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ profile lynx @{exec_path} {
/etc/mailcap r,
/etc/mime.types r,

owner @{tmp}/lynxXXXX*/ rw,
owner @{tmp}/lynxXXXX*/*TMP.html{,.gz} rw,
owner @{tmp}/lynxXXXX*/{,**} rw,

include if exists <local/lynx>
}
Expand Down

0 comments on commit 675a754

Please sign in to comment.