spacewalk/admin/rhn-populate-database.pl | 1 +
1 file changed, 1 insertion(+)
New commits:
commit ec440206d21021c2ba8fdedf3dc9e2b6f1f31386
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Thu Aug 26 14:50:51 2010 +0200
626420 - chdir to root to stop sqlplus from searching the mounted devices.
Addressing:
type=AVC msg=audit(1282053398.115:107): avc: denied { search } for pid=31426
comm="sqlplus" name="/" dev=loop0 ino=1792
scontext=root:system_r:oracle_sqlplus_t:s0 tcontext=system_u:object_r:iso9660_t:s0
tclass=dir
and
type=AVC msg=audit(1282825371.899:619): avc: denied { search } for pid=4145
comm="sqlplus" name="mnt" dev=dm-0 ino=4812193
scontext=root:system_r:oracle_sqlplus_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mnt_t:s0
tclass=dir
diff --git a/spacewalk/admin/rhn-populate-database.pl
b/spacewalk/admin/rhn-populate-database.pl
index fd2d830..d24b9c4 100755
--- a/spacewalk/admin/rhn-populate-database.pl
+++ b/spacewalk/admin/rhn-populate-database.pl
@@ -105,6 +105,7 @@ if ($postgresql) {
$ENV{PGPASSWORD} = $password;
} else {
print "*** Installing Oracle schema from [$schema_deploy_file].\n";
+ chdir('/');
@command = ( 'sqlplus', "$user/$password\@$database",
"\@$schema_deploy_file" );
}
Show replies by date