Hello,
Am Donnerstag, 24. Juli 2025, 21:54 schrieb Simon McVittie:
On Thu, 24 Jul 2025 at 20:45:28 +0200, Christian Boltz wrote:
we need a separate profile for papers-previewer
We already have one, in the papers package.
Even better :-)
/usr/bin/evince-previewer Px,
+ /usr/bin/papers-previewer Pix,
A Px rule (without the ix fallback) would be better.
Would that load successfully, but gracefully decline to run /usr/bin/papers-previewer (which in practice would not exist), if the
papers package isn't installed?
Right, the profile will load successfully.
If evince tries to execute papers-previewer, and that profile isn't
loaded, the exec will be denied and audit.log will log the denial with something like "target profile doesn't exist".
I thought that falling back to "same access to things that evince
would already have had" would be less bad than falling back to "can't
run at all". Running arbitrary code with "ix" is no worse for
hardening purposes than the same code being in-process, after all...
I get your theory.
In practise, it depends - does the target profile grant more or less permissions than the current profile?
(There's also the risk that denials will be reported for the "wrong"
profile if the ix fallback gets used, so the evince profile might get permissions added that are only needed for papers-previewer.)
evince needs to work normally if papers is not installed, in which
case print preview should get ENOENT when attempting to run
papers-previewer, and fall back to evince-previewer, the same as it
would do in the absence of AppArmor.
As long as "papers-previewer is installed" also means "the AppArmor
profile for papers-previewer is loaded", everything should work as you
expect.
Regards,
Christian Boltz
--
[19:31] <suseROCKs> #info anditosan just text that he took a sleeping
pill last night and is trying to wake up to get to the meeting... [19:31] <suseROCKs> :-D
[19:31] --> anditosan joined the channel (~
[email protected]).
[19:32] <shayonj> hah , there he is
[19:32] <suseROCKs> anditosan is going to *LOVE* reading the minutes
after this meeting!
[from #opensuse-project]
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEcMqgYN4EKq6xsVGWxqaC6mPILxwFAmiCmLMACgkQxqaC6mPI Lxwcsw//cywYuorX/IQmDRLCFE5xTbjG+O16u1hPMcnHX2MOx5ZqezxHXJY9IFOh 7Hi/n6jWdEcSzDWcsS7QUE3dZmPAVFxE3VcOZPO4NY1czxUCWdkZSTRSY5SrMfDx tTAnu7wWb76gXTTYbKXtwOYlH2gW1QhDquoZPUKzYMRxH7t/fHnmTexyN9aA4w+Y 18usfpVU9B1Tj6jlefkCJj1OI5lbg6sQWij78jGRUQSfW85zec4vAs9O/ilUfg+h omgKQZ5ISCE3lIt9l/73ZkNYQd/LGdvAqNCbYE9ZJDCB9rlk7WWA9PvAhO28Dz/o rySckUEkNMfPZU4Jb4Z20wf6cwXy5wbQKsZ01eQ/u88fOZP1NQIze9LjwoZOcJPV r/U6ZKhEVcWdZI9nxl9Ne/jWX00LbcmgpGCg7lzl9ka4R8523NlHbnhfmDYU3qQa sOPpi64R/U3whKohUAf8O1GT4Y4rCg+oGt8nvPfwDZJIju4YNiNFFJpAAoCiBOta BrrurqeBBtDPgKcp5wur/EA9g9BxHE5dsdsyry2XFc6z1mp9YkMDFz9Zf3nE1WMM /FoIgjBDLF1uCGpWwz8sA+1cUYIE9PFI31ZrN4hw/PydSBGiQzzxwdk1T1Q6F/tY 1YX7YQxAd1MG0YTC4NEDSlDiCtLwxupPP6PiroeZvc9AH7yQQEA=
=2JgD
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)