[Bug 1304882] Review Request: openqa - OS-level automated test framework and web UI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1304882



--- Comment #35 from awilliam@xxxxxxxxxx <awilliam@xxxxxxxxxx> ---
If I modify the test script to throw an open() in there:

#!/bin/perl

use Config::IniFiles;
use POSIX qw/setuid setgid/;

setuid 995;
setgid 994;

open( my $fh, '<', '/etc/openqa/database.ini' );
while ( my $line = <$fh> ) {
    print $line;
}
close $fh;

my %ini;
tie %ini, 'Config::IniFiles', ( -file => "/etc/openqa/database.ini" );

print "We have $ini{production}{dsn}.\n" if $ini{production}{dsn};

then the open() doesn't complain, but when run as root, it prints nothing. When
run as geekotest, it prints the contents of the file. Again, when it hits the
'tie' line, it crashes when run as root, works when run as geekotest.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review




[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]