mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
profiles: fix lsof profile test
Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
parent
d9028aea4e
commit
3b012c3a24
@ -46,7 +46,7 @@ execute: |
|
||||
rm /tmp/deleted-file
|
||||
|
||||
# See if lsof still detects it
|
||||
sudo lsof | grep "(deleted)"
|
||||
sudo lsof | grep -F "/tmp/deleted-file (deleted)"
|
||||
|
||||
# Cleanup
|
||||
kill $TAIL_PID
|
||||
@ -177,7 +177,7 @@ execute: |
|
||||
# Try open file from mounted share
|
||||
echo "test content" | sudo tee /srv/samba/share/testfile.txt
|
||||
sudo sync # sync samba to update testfile.txt
|
||||
# Open shared file for reading ans assign fd 3. Opoen for r/w can be tricky in smb, this does the trick.
|
||||
# Open shared file for reading and assign fd 3. Open for r/w can be tricky in smb, this does the trick.
|
||||
exec 3</mnt/smb/testfile.txt
|
||||
sleep 2
|
||||
#lsof on open share
|
||||
|
Loading…
x
Reference in New Issue
Block a user