Untrusting system trusted files #275
Replies: 6 comments 2 replies
-
I did a reference impl for option 3 here - https://github.com/jw3/fapolicyd/tree/skip_db_sync This adds a daemon config setting to avoid db sync with the backend sources on reload or restart (still syncs on init). Using our dev tool Test setup
Writing to the pipe can be substituted with a daemon restart to achieve same results. Test log
Supports
Questions
|
Beta Was this translation helpful? Give feedback.
-
This sort of ties over into #226 when you think of additional use cases that could be handled by revoking or adding trust based on application logic, without the need to push such logic down into the daemon. |
Beta Was this translation helpful? Give feedback.
-
I think that trying to stop the sync may break the system. You need to ensure that there will be no system update at the time. With not updated trustdb you cannot use updated binaries. And at the end of the update transaction rpm/dnf plugin will write I see two options to accomplish this:
|
Beta Was this translation helpful? Give feedback.
-
Thanks @radosroka.
I can see the problem posed by both the in-progress system update and the state of the system after the update. Significant. The option to ban files sounds like it accomplishes what this topic was created for, and does it in a clean way.
Prefixing is interesting. |
Beta Was this translation helpful? Give feedback.
-
For posterity and visibility I'll open the original point as an issue on the daemon repo. For the same reason I might submit that branch as a PR and you can poke holes in it up there too 😁 |
Beta Was this translation helpful? Give feedback.
-
This was addressed in fapolicyd by linux-application-whitelisting/fapolicyd#222. |
Beta Was this translation helpful? Give feedback.
-
Question
How could fapolicyd's trust for a system-trusted file be revoked?
scenario
A vulnerability is discovered in a RPM installed file, where uninstall is not an option, and there is no upgrade available.
Can the file be blacklisted until it can be upgraded?
option 1
One option could be to add an ancillary trust entry with a junk hash, eg all 0s.
option 2
Another option would be to add a rule that explicitly denies the file.
option 3
Another option would be to write the lmdb trust database, directly evicting the trust entry.
What else is there?
Beta Was this translation helpful? Give feedback.
All reactions