feat(profile): add lsfd
This commit is contained in:
parent
ed06dac702
commit
f516e1140a
2 changed files with 78 additions and 0 deletions
19
tests/integration/utils/lsfd.bats
Normal file
19
tests/integration/utils/lsfd.bats
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue