diff options
author | Joshua Ismael Haase Hernandez <hahj87@gmail.com> | 2011-05-18 10:36:32 -0500 |
---|---|---|
committer | Joshua Ismael Haase Hernandez <hahj87@gmail.com> | 2011-05-18 10:36:32 -0500 |
commit | 02c6fa41964c6bb1e7f285ff530e8082b9326399 (patch) | |
tree | 2c13819f471dca50955bddeadbf940ff3631c1e2 /extra/kismet/kismet.install | |
parent | 8c0e0492541a5ef68bf2814712502103d8f475b5 (diff) | |
parent | a4f85b5a8c5460995c83445460351846cde419f8 (diff) |
Merge branch 'master' of http://projects.parabolagnulinux.org/abslibre-mips64el
Conflicts:
extra/python/PKGBUILD
Diffstat (limited to 'extra/kismet/kismet.install')
-rw-r--r-- | extra/kismet/kismet.install | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/extra/kismet/kismet.install b/extra/kismet/kismet.install new file mode 100644 index 000000000..0bc806034 --- /dev/null +++ b/extra/kismet/kismet.install @@ -0,0 +1,34 @@ +## arg 1: the new package version +post_install() { + post_upgrade + + cat << EOP + If you have not done so already, read the README file and the FAQ file. + You MUST edit /etc/kismet.conf and configure Kismet for your system, or + it will NOT run properly!" + + Kismet has been installed with a SUID ROOT CAPTURE HELPER executeable by + users in the group ' kismet '. This WILL ALLOW USERS IN THIS GROUP + TO ALTER YOUR NETWORK INTERACE STATES, but is more secure than running + all of Kismet as root. ONLY users in this group will be able to + run Kismet and capture from physical network devices. +EOP +} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + # Add the group needed to use the limited-functionality binary "kismet_capture" + # Change group ownership of "kismet_capture" to this new group + # Preserve the file mode bits of "kismet_capture" + getent group "kismet" &>/dev/null || /usr/sbin/groupadd -r -g 315 kismet &>/dev/null + chown root:kismet "/usr/bin/kismet_capture" + chmod 4550 "/usr/bin/kismet_capture" +} + +## arg 1: the old package version +post_remove() { + getent group "kismet" &>/dev/null && /usr/sbin/groupdel kismet &>/dev/null +} + +# vim:set ts=2 sw=2 et: |