Imagine application which has to be on system bus and has to have multiple instances. These instances have service names foo.bar.dev1, foo.bar.dev2... Now you need to put this into policy file. Something like: <allow own="foo.bar.*"/>. This is not possible at the moment though. Only "*" is possible to allow everything. Please implement this extended wildcard checking.
*** Bug 46886 has been marked as a duplicate of this bug. ***
(In reply to comment #0) > Now you need to put this into policy file. Something like: <allow > own="foo.bar.*"/>. This is not possible at the moment though. Instead of extending the subset of wildcards we support, I think I'd prefer <allow own_prefix="foo.bar"/>, which seems like it covers the only sensible use-case for this. There are patches on duplicate Bug #46886. The implementation looks OK but documentation and regression tests are missing. Alban, could you add those, and I'll review?
(In reply to comment #2) > (In reply to comment #0) > > Now you need to put this into policy file. Something like: <allow > > own="foo.bar.*"/>. This is not possible at the moment though. > > Instead of extending the subset of wildcards we support, I think I'd prefer > <allow own_prefix="foo.bar"/>, which seems like it covers the only sensible > use-case for this. > > There are patches on duplicate Bug #46886. The implementation looks OK but > documentation and regression tests are missing. Alban, could you add those, and > I'll review? Proposed patch looks good to me.
Branch "own_prefix2" updated after review from Bug #46886 Comment #2-3.
(In reply to comment #4) > Branch "own_prefix2" updated after review from Bug #46886 Comment #2-3. Nice, I hadn't thought of doing the tests like that. I'll merge this next week if none of the reviewer cabal object to it, but for now, r+ from me.
This went into 1.5.12.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.