Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775902 - app-admin/sagan-2.0.1-r2 need some folders to be present
Summary: app-admin/sagan-2.0.1-r2 need some folders to be present
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 775395
  Show dependency tree
 
Reported: 2021-03-13 23:18 UTC by Alessandro Barbieri
Modified: 2021-03-15 01:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sagan-2.0.1-r3.ebuild.patch (file_775902.txt,540 bytes, text/plain)
2021-03-13 23:53 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2021-03-13 23:18:00 UTC
/var/sagan/fifo

3029761:[*] [03/13/2021 04:08:34] - Attempting to open syslog FIFO (/var/sagan/fifo/sagan.fifo).
3029762:[*] [03/13/2021 04:08:34] - Fifo not found, creating it (/var/sagan/fifo/sagan.fifo).
3029763:[E] [03/13/2021 04:08:34] - Could not create FIFO '/var/sagan/fifo/sagan.fifo'. Abort!

/var/log/sagan/stats

3029203:[E] [03/13/2021 04:05:22] - [processors/stats-json.c, line 70] Can't open /var/log/sagan/stats/stats.json - No such file or directory!
3029477:[E] [03/13/2021 04:07:54] - [processors/stats-json.c, line 70] Can't open /var/log/sagan/stats/stats.json - Permission denied!
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-13 23:53:29 UTC
Created attachment 691257 [details]
sagan-2.0.1-r3.ebuild.patch

Does this work for you?
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-15 00:41:59 UTC
...?
Comment 3 Alessandro Barbieri 2021-03-15 00:43:22 UTC
Trying now
Comment 4 Alessandro Barbieri 2021-03-15 00:56:59 UTC
This is wrong keepdir /var/log/sagan{,stats}
Let me try again with
keepdir /var/log/sagan/{,stats}
Comment 5 Alessandro Barbieri 2021-03-15 01:01:22 UTC
The two issues mentioned above are fixed now
Let me check if logrotate complain about the permissions
Comment 6 Alessandro Barbieri 2021-03-15 01:04:48 UTC
Nope

L'unità logrotate.service ha iniziato la fase di avvio.
mar 15 02:01:38 ALESSAND-F1E8 logrotate[54404]: error: skipping "/var/log/sagan/alert" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
mar 15 02:01:38 ALESSAND-F1E8 logrotate[54404]: error: skipping "/var/log/sagan/sagan.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for ro
tation.
mar 15 02:01:38 ALESSAND-F1E8 logrotate[54404]: error: skipping "/var/log/sagan/sagan.stats" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
mar 15 02:01:38 ALESSAND-F1E8 systemd[1
Comment 7 Larry the Git Cow gentoo-dev 2021-03-15 01:26:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e7e6c33f5a2f02cf74a4851b858b63ab91e6e5d

commit 6e7e6c33f5a2f02cf74a4851b858b63ab91e6e5d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-15 01:19:14 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-15 01:19:14 +0000

    app-admin/sagan: fix log and runtime directory permissions
    
    Closes: https://bugs.gentoo.org/775902
    Signed-off-by: Sam James <sam@gentoo.org>

 .../sagan/{sagan-2.0.1-r3.ebuild => sagan-2.0.1-r4.ebuild}     | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a0d469ed446b082600e3f4c7db0472dccd87d58

commit 0a0d469ed446b082600e3f4c7db0472dccd87d58
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-15 01:25:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-15 01:25:33 +0000

    app-admin/sagan: add warning to fix permissions for older installs
    
    Bug: https://bugs.gentoo.org/775902
    Signed-off-by: Sam James <sam@gentoo.org>

 app-admin/sagan/sagan-2.0.1-r4.ebuild | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-15 01:27:17 UTC
Thanks for the feedback. Hope this works.

I'm not a user of Sagan, so I'm kind of working blindish here, but trying to test it.