diff options
author | Nathan Kinder <nkinder@redhat.com> | 2009-09-17 08:13:59 -0700 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2009-09-17 08:13:59 -0700 |
commit | 8af8dffe2416290b8777dcda3450d1e76ca8657c (patch) | |
tree | 8499e2182f20619cdc3d4396728f8fe86e73c00b /ldap/servers/snmp/ldap-agent.h | |
parent | 0dedc61d90e84e15dad2d9ade77bc5503f6e4b62 (diff) | |
download | ds-8af8dffe2416290b8777dcda3450d1e76ca8657c.tar.gz ds-8af8dffe2416290b8777dcda3450d1e76ca8657c.tar.xz ds-8af8dffe2416290b8777dcda3450d1e76ca8657c.zip |
Add SELinux policy for ldap-agent.
This adds SELinux policy to confine the SNMP subagent (ldap-agent).
There were some changes required around the aubagent to make it
work in a more standard fashion.
I moved the ldap-agent binary and wrapper to sbindir. It was
previously in bindir, yet it is not a user command. The location
really should be sbindir per FHS.
I added init scripts for the subagent, so it can now be managed
using "service dirsrv-snmp [start|stop|restart|condrestart|status]".
While doing this, I found that the parent process was exiting with
1 on success instead of 0, so I fixed that.
I added a default config file for the subagent as well. When using
the init script, the config file is hardcoded into this standard
location. Having this config template should also hopefully cut
down on configuration errors since it's self documenting.
The pid file location was also changed to go into /var/run per FHS.
Previously, it was written to the same directory as the log file.
There are a few notes in the policy .te file about some bugs that
we are working around for now. These bugs are mainly minor issues
in the snmp policy that is a part of the selinux-policy pacakge.
Once those bugs are fixed, we can clean our policy .te file up.
Diffstat (limited to 'ldap/servers/snmp/ldap-agent.h')
-rw-r--r-- | ldap/servers/snmp/ldap-agent.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/snmp/ldap-agent.h b/ldap/servers/snmp/ldap-agent.h index 30253d1c..664d7e22 100644 --- a/ldap/servers/snmp/ldap-agent.h +++ b/ldap/servers/snmp/ldap-agent.h @@ -90,7 +90,7 @@ extern "C" { #define CACHE_REFRESH_INTERVAL 15 #define UPDATE_THRESHOLD 20 #define SNMP_NUM_SEM_WAITS 10 -#define LDAP_AGENT_PIDFILE ".ldap-agent.pid" +#define LDAP_AGENT_PIDFILE "ldap-agent.pid" #define LDAP_AGENT_LOGFILE "ldap-agent.log" /************************************************************* |