On Wed, Aug 25, 2010 at 10:51 AM, Dominick Grift <domg472@xxxxxxxxx> wrote: >> my $data = "*H+H\$!ELIF-TSET-SURIVITNA-DRADNATS-RACIE\$}7)CC7)^P(45XZP\\4\[PA\@\%P!O5X"; >> srand; >> my ($fh, $tempFile) = mkstemp( "/tmp/clamdwatch-XXXXXXXXXXXXXXXX" ); >> `chcon -t clamd_tmp_t $tempFile` >> chmod('0644', $tempFile); >> >> However, I think that the mkstemp call is failing since I think this >> script cannot write into the /tmp/ directory. You may need to do >> something like create a /tmp/clamd/ directory and give it a >> clamd_tmp_t type. > > It should be able to write into tmp and i think it is. This script is > run by an unconfined user in an unconfined domain In that case the above script should work. Jason -- selinux mailing list selinux@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/selinux