Hi Alexandr, ah, SELinux fun...one option (maybe a bit blunt force applied) could be either to disable SELinux context for the whole /scratch file system (if it is on a separate mount?) or maybe try and tweak mount it with the `-context="..."` mount flag and try/err which labels need to be applied for everything to work. However, I have not tried that wrt Condor so your experiences may vary...
Else, worth a try might be try to be less blunt and to label the scratch dir with a broad context like `tmp_t` or `public_content_rw_t`, which should(?) be allow nearly anything IIRC
> semanage fcontext -t public_content_rw_t -a "/scratch/condor(/.*)" > restorecon -Rv /scratch/condor/ I would hope, that child directories for jobs inherit the labels ðI would be quite interested, if it works for you (as I have so far disabled SELinux for my EPs... :-/ )
Cheers, Thomas On 2025-10-02 09:40, Alexandr Mikula wrote:
Hi fellow birdkeepers, I am having the problem using condor_ssh_to_jobs (including the interactive jobs), due to the combination of the per job LVM and enforcing SELinux on EP. On EP without LVM and with SELinux it works OK. The condor is unable to create the ssh keypair with this in the audit log: type=AVC msg=audit(1759390053.112:250528): avc: denied { write } for pid=1383020 comm="ssh-keygen" path="/scratch/condor/dir_1364028/.condor_ssh_to_job_2/keygen.log" dev="dm-13" ino=27 scontext=system_u:system_r:ssh_keygen_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=0 condor_ssh_to_job output: #condor_ssh_to_job 31194944 slot1_2@minis01: condor_ssh_to_job_sshd_setup failed: Failed to create ssh key /scratch/condor/dir_1364028/.condor_ssh_to_job_2/sshkey with command "/usr/bin/ssh-keygen" "-N" "" "-C" "" "-q" "-f" "/scratch/condor/dir_1364028/.condor_ssh_to_job_2/sshkey" "-t" "rsa" Any ideas how to fix it? Cheers AM _______________________________________________ HTCondor-users mailing list To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a subject: Unsubscribe The archives can be found at: https://www-auth.cs.wisc.edu/lists/htcondor-users/
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature