[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#54309] What is the process from here?
From: |
Maxime Devos |
Subject: |
[bug#54309] What is the process from here? |
Date: |
Sun, 20 Mar 2022 00:09:52 +0100 |
User-agent: |
Evolution 3.38.3-1 |
Liliana Marie Prikler schreef op vr 18-03-2022 om 23:36 [+0100]:
> > +(define (auditd-activation config)
> > + (with-imported-modules '((guix build utils))
> > + #~(begin
> > + (use-modules (guix build utils))
> > + (let ((var-log-audit "/var/log/audit"))
> > + (umask #o077)
> > + (mkdir-p var-log-audit)))))
> > +
> This would also apply umask 077 to /var and /var/log if those don't
> already exist. More importantly, code executed after that will also
> inherit the umask, which I don't think is the intended consequence.
More concretely, the procedure 'mkdir-p/perms' would address the umask
issue, but not the potential ‘oops too restrictive permissions for /var
and /var/log' issue. Additionally, as var-log-audit is only used in a
single place, you could simplify to
#~(begin
(use-modules ...)
(mkdir-p/perms "/var/log/audit"))
here.
Greetings,
Maxime.
signature.asc
Description: This is a digitally signed message part
- [bug#54309] [PATCH] services: auditd: use exclusive log directory for auditd, (continued)
- [bug#54309] [PATCH] services: auditd: use exclusive log directory for auditd, fesoj000, 2022/03/09
- [bug#54309] [PATCH] services: auditd: use exclusive log directory for auditd, fesoj000, 2022/03/10
- [bug#54309] What is the process from here?, fesoj000, 2022/03/18
- [bug#54309] What is the process from here?, Liliana Marie Prikler, 2022/03/18
- [bug#54309] What is the process from here?, fesoj000, 2022/03/18
- [bug#54309] What is the process from here?, Liliana Marie Prikler, 2022/03/18
- [bug#54309] What is the process from here?, fesoj000, 2022/03/19
- [bug#54309] What is the process from here?,
Maxime Devos <=
- [bug#54309] What is the process from here?, fesoj000, 2022/03/22
- [bug#54309] What is the process from here?, Liliana Marie Prikler, 2022/03/22
[bug#54309] [PATCH] services: auditd: use exclusive log directory for auditd, fesoj000, 2022/03/19
[bug#54309] [PATCHv2] services: auditd: use exclusive log directory for auditd, fesoj000, 2022/03/23
[bug#54309] [PATCHv3] services: auditd: use exclusive log directory for auditd, fesoj000, 2022/03/23