Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154293 - Incorrect ownership of /usr/nagios/libexec for grsecurity
Summary: Incorrect ownership of /usr/nagios/libexec for grsecurity
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 172480
  Show dependency tree
 
Reported: 2006-11-06 14:50 UTC by Narayan Newton
Modified: 2007-06-30 16:40 UTC (History)
4 users (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 Narayan Newton 2006-11-06 14:50:09 UTC
The current practice of having /usr/nagios/libexec owned by the nagios user (instead of root) prevents nagios commands from running on boxes with grsec/trustedpath installed. A fix for this would be to have the directory owned by root, as is /usr/nagios/bin.

The error output is as follows: 
Comment 1 Narayan Newton 2006-11-06 14:50:09 UTC
The current practice of having /usr/nagios/libexec owned by the nagios user (instead of root) prevents nagios commands from running on boxes with grsec/trustedpath installed. A fix for this would be to have the directory owned by root, as is /usr/nagios/bin.

The error output is as follows: 
denied untrusted exec of /usr/nagios/libexec/check_procs by /bin/bash

The permissions are: 
drwxr-xr-x  2 root   root   4096 Oct 24 18:50 bin
drwxr-x---  3 nagios nagios 4096 Oct 24 18:50 libexec

Thank you for your time.

--Narayan Newton
Comment 2 Wolfram Schlich (RETIRED) gentoo-dev 2006-11-23 15:11:18 UTC
I'd also like to have it root:nagios and not group-writable, because
it would be easier to allow the user nagios to run some check_* programs
via sudo that might need elevated privileges, for example on grsecurity kernels.

Currently I'm using a shellscript-wrapper that is located in a directory not writable by user nagios. The script is allowed to be run via sudo by the
user nagios.
Comment 3 solar (RETIRED) gentoo-dev 2006-11-28 18:48:23 UTC
Thanks for filing this bug. While hardened does like things to work out of the box with grsec/TPE we do not maintain this package. netmon(lance) however does and is a grsec user. So this change should not be a problem. Reassigning it to netmon@ for review.
Comment 4 solar (RETIRED) gentoo-dev 2007-06-07 07:59:26 UTC
Jokey asked me about this bug on irc today.. I suggested the root:nagios thing already suggested by mailto:wschlich@gentoo.org
Comment 5 Tobias Scherbaum (RETIRED) gentoo-dev 2007-06-30 16:40:10 UTC
Fixed in nagios-plugins et al.