Skip to contentSkip to conversation

cron_system_entry(gpg_t, gpg_exec_t)

refpolicy Russell Coker 3 participants 3 messages Jun 14, 2018 – Jun 16, 2018

lore
Share & tools
lore
#0 lore raw

cron_system_entry(gpg_t, gpg_exec_t)

Why do we have this?

gpg is run by cron jobs that write to /var/log, so if we use gpg_t for gpg when it's run from those cron jobs we need to allow it access to var_log_t which means that user_t can use gpg to access var_log_t.

What benefit do we get from a domain transition when running gpg from a system cron job?

Signature · 2 lines
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/
#1 lore raw
Quoted 10 lines · Russell Coker via refpolicy

cron_system_entry(gpg_t, gpg_exec_t)

Why do we have this?

gpg is run by cron jobs that write to /var/log, so if we use gpg_t for gpg when it's run from those cron jobs we need to allow it access to var_log_t which means that user_t can use gpg to access var_log_t.

What benefit do we get from a domain transition when running gpg from a system cron job?

It was added back in 2009 from the Fedora policy. I can see dropping it, if there are no arguments to keep it.

Signature · 1 line
Chris PeBenito
#2 lore raw
In reply to Russell Coker
Quoted 3 lines · Russell Coker via refpolicy

cron_system_entry(gpg_t, gpg_exec_t)

Why do we have this?

My bad. Got it from Fedora probably. Was a bad idea and not something I would do today.

Remove it please.

Quoted 18 lines

gpg is run by cron jobs that write to /var/log, so if we use gpg_t for gpg when it's run from those cron jobs we need to allow it access to var_log_t which means that user_t can use gpg to access var_log_t.

What benefit do we get from a domain transition when running gpg from a system cron job?

Signature · 9 lines
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/



_______________________________________________
refpolicy mailing list
refpolicy at oss.tresys.com
http://oss.tresys.com/mailman/listinfo/refpolicy
Signature · 10 lines
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8  02D5 3B6C 5F1D 2C7B 6B02
https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02
Dominick Grift
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20180616/8cab9c04/attachment.bin