Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72283 - /var/log/snort created too restrictive
Summary: /var/log/snort created too restrictive
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 91673 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-23 14:41 UTC by Tupone Alfredo
Modified: 2005-05-07 05:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tupone Alfredo gentoo-dev 2004-11-23 14:41:16 UTC
Emerging snort will create a user "snort" and a snort dir under /var/log
This dir is owned by root and user snort cannot create anything inside

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Daniel Black (RETIRED) gentoo-dev 2005-01-12 01:33:06 UTC
fixed in 2.3.0_rc2 and all version of snort that I can see.
$ fgrep /var/log *
ChangeLog:  /var/log/snort now has a .keep in it. Closes bug #7271 by
snort-2.0.6.ebuild:     dodir /var/log/snort
snort-2.0.6.ebuild:     keepdir /var/log/snort/
snort-2.0.6.ebuild:     enewuser snort -1 /dev/null /var/log/snort snort
snort-2.0.6.ebuild:     usermod -d "/var/log/snort" snort || die "usermod problem"
snort-2.0.6.ebuild:     chown snort:snort /var/log/snort
snort-2.0.6.ebuild:     chmod 0770 /var/log/snort
snort-2.1.3.ebuild:     enewuser snort -1 /dev/null /var/log/snort snort
snort-2.1.3.ebuild:     usermod -d "/var/log/snort" snort || die "usermod problem"
snort-2.1.3.ebuild:     dodir /var/log/snort
snort-2.1.3.ebuild:     keepdir /var/log/snort/
snort-2.1.3.ebuild:     chown snort:snort ${D}/var/log/snort
snort-2.1.3.ebuild:     chmod 0770 ${D}/var/log/snort
snort-2.2.0.ebuild:     enewuser snort -1 /dev/null /var/log/snort snort
snort-2.2.0.ebuild:     usermod -d "/var/log/snort" snort || die "usermod problem"
snort-2.2.0.ebuild:     dodir /var/log/snort
snort-2.2.0.ebuild:     keepdir /var/log/snort/
snort-2.2.0.ebuild:     chown snort:snort ${D}/var/log/snort
snort-2.2.0.ebuild:     chmod 0770 ${D}/var/log/snort
snort-2.3.0_rc2.ebuild: enewuser snort -1 /dev/null /var/log/snort snort
snort-2.3.0_rc2.ebuild: usermod -d "/var/log/snort" snort || die "usermod problem"
snort-2.3.0_rc2.ebuild: keepdir /var/log/snort/
snort-2.3.0_rc2.ebuild: chown snort:snort ${D}/var/log/snort
snort-2.3.0_rc2.ebuild: chmod 0770 ${D}/var/log/snort
Comment 2 Aaron Walker (RETIRED) gentoo-dev 2005-05-07 05:10:08 UTC
*** Bug 91673 has been marked as a duplicate of this bug. ***