|Main Archive Page > Month Archives > fedora-selinux archives|
On Wed, Aug 25, 2010 at 10:51 AM, Dominick Grift <email@example.com> wrote:
>> my $data = "*H+H\$!ELIF-TSET-SURIVITNA-DRADNATS-RACIE\$}7)CC7)^P(45XZP\\4\[PA\@\%P!O5X";
>> 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.
-- selinux mailing list firstname.lastname@example.org https://admin.fedoraproject.org/mailman/listinfo/selinux