Overview

Request 1201646 declined

reinstate dir for /etc/audit

Loading...

Ruediger Oertel's avatar

can you please add a little more detail from the changes or at least a link to a changelog

currently there is only: + * Includes fixes since v3.1.1


Enzo Matsumiya's avatar

Sure, let me know if this looks better so I can resubmit:

https://build.opensuse.org/package/rdiff/home:ematsumiya:branches:security/audit?linkrev=base&rev=4


Ruediger Oertel's avatar

yes, thanks. this does look a lot better!


Ana Guerrero's avatar

There is still an issue in docker when building with this audit version:

[  111s] ... running 50-check-filelist
[  111s] ... checking filelist
[  111s] docker-26.1.5_ce-4.2.x86_64.rpm: directories not owned by a package:
[  111s]  - /etc/audit/rules.d

Enzo Matsumiya's avatar

audit-rules now owns it:

%files -n audit-rules
...
+%dir %attr(750,root,root) %{_sysconfdir}/audit/rules.d

And that error didn't show up for me (e.g. here): https://build.opensuse.org/build/openSUSE:Factory:Staging:N/standard/x86_64/audit:audit-secondary/_log

So I don't know what docker could be doing differently, or what I could change in audit spec to make it compatible. If anyone has a hint, I'd appreciate it -- I'm having a really hard time dealing with these build issues.


Ana Guerrero's avatar

Hi Enzo, This is not a build issue, this is a packaging issue in docker and sadly they're always going to happen because the scripts detecting them only run in Staging. The original issue is already fixed in https://build.opensuse.org/request/show/1201819 , a second upload is needed for the permissions.


Ana Guerrero's avatar

Hi @ematsumiya

The docker problems were fixed, this is right now stuck waiting for you to update audit following the review comments above.

There are however some openQA tests failing because /var/log/audit/ doesn't exit see https://openqa.opensuse.org/tests/4502810#step/journal_check/41 Is expected that this directory doesn't exist anymore?


Enzo Matsumiya's avatar

Uh I completely forgot to resubmit after Ruediger's ok.

/var/log/audit was supposed to still exist just fine -- it wasn't modified in any way in the spec file.

I'll check what's going on and then I can fix this as well, if needed, before resubmitting.


Enzo Matsumiya's avatar

What I understand from https://openqa.opensuse.org/tests/4502810#step/journal_check/41 is that /var/log/audit (the directory) does exist as you can see from https://openqa.opensuse.org/tests/4502810#step/journal_check/37

However, it's empty, as auditd was probably never started and/or logged anything.

Can you double check those please? Or if you can point/teach me to how I can reproduce this error, I can try it locally.


Dominique Leuenberger's avatar

the directory is probably empty as installingaudit results in no rules being present (audit-rules is not required) which means there is nothing to do for audit.


Dominique Leuenberger's avatar
Sep 24 02:44:02.841744 localhost systemd-journald[177]: Collecting audit messages is disabled.

Dominique Leuenberger's avatar

found a minor error in the spec files:

%preun -n audit
%service_del_preun auditd.service
%service_del_preun audit-rules.service

audit-rules.service has been moved out of the audit package, the post/postun script should no longer handle that sevice


Enzo Matsumiya's avatar

Pushed fixes for your comments:

https://build.opensuse.org/package/rdiff/home:ematsumiya:branches:security/audit?linkrev=base&rev=5


Dominique Leuenberger's avatar

You will need to create a new submission to factory - the SRs are pinned to the revision you originally pushed (allowing you to further work on a package while a submission is pending)


Dominique Leuenberger's avatar
-%dir %attr(750,root,root) %{_sysconfdir}/audit
-%attr(750,root,root) %dir %{_sysconfdir}/audit/plugins.d
+%dir %attr(750,root,root) %{_sysconfdir}/audit/plugins.d

that means /etc/audit is no longer owned by audit? bad practice to create directories below a non-onwed, non-system-owned directory


Wolfgang Frisch's avatar

Hi dimstar, I reinstated %dir ... /etc/audit for the main audit package. Is it acceptable now? https://build.opensuse.org/request/show/1201646


Enzo Matsumiya's avatar

/etc/audit is now owned by the audit-rules subpackage:

+%dir %attr(750,root,root) %{_sysconfdir}/audit

Let me know if you think this (or introducing the audit-rules subpackage) should be a problem -- I thought it would cause more trouble, but on my (controlled/ideal) test environment all went good.


Wolfgang Frisch's avatar

Hi Enzo, thanks for looking into it. I left your change and additionally added %dir %attr(750,root,root) %{_sysconfdir}/audit in the main audit package. This doesn't seem to be a problem. I can install all RPMs just fine.

Request History
Wolfgang Frisch's avatar

wfrisch created request

reinstate dir for /etc/audit


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Ana Guerrero's avatar

anag+factory set openSUSE:Factory:Staging:N as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:N"


Ana Guerrero's avatar

anag+factory accepted review

Picked "openSUSE:Factory:Staging:N"


Saul Goodman's avatar

licensedigger accepted review

ok


Ana Guerrero's avatar

anag+factory added factory-staging as a reviewer

Being evaluated by group "factory-staging"


Ana Guerrero's avatar

anag+factory accepted review

Unstaged from project "openSUSE:Factory:Staging:N"


Ana Guerrero's avatar

anag+factory declined review

sr#1204507 has newer source and is from the same project


Ana Guerrero's avatar

anag+factory declined request

sr#1204507 has newer source and is from the same project

openSUSE Build Service is sponsored by