summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-06 09:19:49 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-06 09:19:49 -0700
commitddcfa45b9c1b3c653f0f1b4bd0b997266f5bb5aa (patch)
treea6b3af47bbc02898ac3a6eb117fd831cadfde718
parentd80c542a77015bdc882ff3434c9eeb1a660ecdfb (diff)
downloadvyatta-bash-ddcfa45b9c1b3c653f0f1b4bd0b997266f5bb5aa.tar.gz
vyatta-bash-ddcfa45b9c1b3c653f0f1b4bd0b997266f5bb5aa.zip
Turn on auditing for Vyatta bash
The original patch turned on auditing iff shell was named aubash and user was root. We change that to be always on if shell if vbash.
-rw-r--r--config-bot.h2
-rw-r--r--eval.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/config-bot.h b/config-bot.h
index a4f95cf..d78efef 100644
--- a/config-bot.h
+++ b/config-bot.h
@@ -99,7 +99,7 @@
/* If the shell is called by this name, it will become audited. */
#if defined (AUDIT_SHELL)
-# define AUDIT_SHELL_NAME "aubash"
+# define AUDIT_SHELL_NAME "vbash"
#endif
/***********************************************************/
diff --git a/eval.c b/eval.c
index e493643..a9937a8 100644
--- a/eval.c
+++ b/eval.c
@@ -187,7 +187,7 @@ reader_loop ()
executing = 1;
stdin_redir = 0;
#if defined (AUDIT_SHELL)
- if (audited && interactive_shell && getuid () == 0)
+ if (audited && interactive_shell)
{
if (audit_start () < 0)
{