fedora-selinux August 2010 archive
Main Archive Page > Month Archives  > fedora-selinux archives
fedora-selinux: Re: Clamd - again...

Re: Clamd - again...

From: Jason Axelson <jaxelson_at_nospam>
Date: Wed Aug 25 2010 - 21:05:23 GMT
To: Dominick Grift <domg472@gmail.com>

On Wed, Aug 25, 2010 at 10:51 AM, Dominick Grift <domg472@gmail.com> 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@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/selinux