Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
3c19cd8a
Commit
3c19cd8a
authored
May 23, 2003
by
Leigh B. Stoller
Browse files
Add Auditing.
parent
8db30b88
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/idleswap.in
View file @
3c19cd8a
...
...
@@ -27,12 +27,14 @@ my $TB = "@prefix@";
my
$DBNAME
=
"
@TBDBNAME
@
";
my
$TBOPS
=
"
@TBOPSEMAIL
@
";
my
$TBLOGS
=
"
@TBLOGSEMAIL
@
";
my
$TBAUDIT
=
"
@TBAUDITEMAIL
@
";
my
$swapexp
=
"
$TB
/bin/swapexp
";
#
# Testbed Support libraries
#
use
lib
"
@prefix
@/lib
";
use
libaudit
;
use
libdb
;
use
libtestbed
;
...
...
@@ -111,6 +113,16 @@ if (! TBAdmin($UID)) {
"
Only testbed administrators can issue a forcible swap!
\n
");
}
#
# This script is always audited.
#
if
(
AuditStart
(
0
))
{
#
# Parent exits normally
#
exit
(
0
);
}
#
# Need to know the creator of the experiment.
#
...
...
@@ -141,6 +153,9 @@ if (! $request) {
die
("
*** $0:
\n
"
.
"
No such group
$pid
/
$gid
\n
");
# Send the email now, which terminates the audit.
AuditEnd
();
$EGID
=
$GID
=
$unix_gid
;
$EUID
=
$UID
=
$unix_uid
;
$ENV
{'
USER
'}
=
$creator
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment