Skip to content

Commit

Permalink
[tacacs]: Fix tcpdump report error when tacacs enabled (sonic-net#16372
Browse files Browse the repository at this point in the history
  • Loading branch information
mssonicbld authored Nov 2, 2023
1 parent feaa855 commit fbf30ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,10 @@ LogsDirectory=audit
LogsDirectoryMode=0750
EOF

# latest tcpdump control resource access with AppArmor.
# override tcpdump profile to allow tcpdump access TACACS config file.
sudo cp files/apparmor/usr.bin.tcpdump $FILESYSTEM_ROOT/etc/apparmor.d/local/usr.bin.tcpdump

if [[ $CONFIGURED_ARCH == amd64 ]]; then
## Pre-install the fundamental packages for amd64 (x86)
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install \
Expand Down
2 changes: 2 additions & 0 deletions files/apparmor/usr.bin.tcpdump
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# tcpdump will call getpwnam get current user information, the NSS plugin nss_tacplus hook this API and need access tacacs config file.
/etc/tacplus_nss.conf r,

0 comments on commit fbf30ec

Please sign in to comment.