mirror of
https://github.com/konstruktoid/hardening.git
synced 2026-04-27 09:45:54 +03:00
[GH-ISSUE #11] do_md(): open() for /var/lib/lxcfs/cgroup/* failed: Permission denied #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rmurillo21 on GitHub (Sep 12, 2017).
Original GitHub issue: https://github.com/konstruktoid/hardening/issues/11
do_md(): open() for /var/lib/lxcfs/cgroup/blkio/blkio.reset_stats failed: Permission denied
do_md(): open() for /var/lib/lxcfs/cgroup/blkio/init.scope/blkio.reset_stats failed: Permission denied
...
I got a slew of these while running the script
Any suggestions?
@konstruktoid commented on GitHub (Sep 13, 2017):
Yeah, it's ugly but actually correct since
aideorrootdon't have permissions to read the files.@rmurillo21 commented on GitHub (Sep 14, 2017):
Thanks. Can you clarify? If the files cannot be changed due to permission, why does the hardening script attempt to change them?
@konstruktoid commented on GitHub (Sep 14, 2017):
Ah, the script doesn't try to change them, it's Aide (http://aide.sourceforge.net/) trying to index and create a checksum of the files.
@rmurillo21 commented on GitHub (Sep 14, 2017):
Yes I understand thanks. Seem like the aide configuration should set the permissions, so that it could then read and checksum the file. As it stands, the script produces an error, and the files are not being tracked by aide.
@konstruktoid commented on GitHub (Sep 15, 2017):
aide shouldn't change permissions or modify the files in any way, its purpose is to take a checksum snapshot of a system and the lxc files has the correct permissions. There was some issues earlier but that's fixed, see https://github.com/lxc/lxcfs/pull/150.
Since it's fuse and changes constantly if containers are used, I've excluded the directory and Dockers similar /var/lib/docker, see
github.com/konstruktoid/hardening@761ba2758a (diff-eb5e2ae3d).@rmurillo21 commented on GitHub (Sep 25, 2017):
As a work around, could the script itself can set those to 444 to avoid the error and get actual checksums generated? Not aide, but the hardening script.
@konstruktoid commented on GitHub (Sep 26, 2017):
But that would actually be the wrong permissions.
@rmurillo21 commented on GitHub (Sep 26, 2017):
ok sure - I am not certain what the correct set is, but given the correct permission set, should the script itself do the above? Seems a better result, and the files are then protected. OR is the error result better in some way? Just wondering.
@konstruktoid commented on GitHub (Sep 27, 2017):
Since
aidewill try to checksum a constantly changing filesystem, this would generate unnecessary work when verifying.@konstruktoid commented on GitHub (Oct 31, 2017):
Closing due to inactivity.