feat(profile): add lsfd

This commit is contained in:
Alexandre Pujol 2025-07-20 14:46:22 +02:00 committed by Alex
parent ed06dac702
commit f516e1140a
2 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1,19 @@
#!/usr/bin/env bats
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
load ../common
@test "lsfd: List all open file descriptors" {
lsfd
}
@test "lsfd: List all files kept open by a specific program" {
sudo lsfd --filter 'PID == 1'
}
@test "lsfd: List open IPv4 or IPv6 sockets" {
sudo lsfd -i4
sudo lsfd -i6
}