Univention Bugzilla – Full Text Bug Listing |
Summary: | Listener module cups-printers.py doesn't set uid(0) when loading UCR handlers | ||
---|---|---|---|
Product: | UCS | Reporter: | Florian Best <best> |
Component: | UCR | Assignee: | Felix Botner <botner> |
Status: | CLOSED FIXED | QA Contact: | Stefan Gohmann <gohmann> |
Severity: | normal | ||
Priority: | P5 | CC: | gohmann, hahn, walkenhorst |
Version: | UCS 3.2 | ||
Target Milestone: | UCS 3.2-3-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | --- | What type of bug is this?: | --- |
Who will be affected by this bug?: | --- | How will those affected feel about the bug?: | --- |
User Pain: | Enterprise Customer affected?: | ||
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | ||
Max CVSS v3 score: | |||
Attachments: | Skip writing cache if process has no write permission |
Description
Florian Best
2014-07-15 15:28:09 CEST
(In reply to Florian Best from comment #0) > Workaround is: ... > from univention.config_registry import configHandlers > ucr_handlers = configHandlers() > +listener.setuid(0) try: > ucr_handlers.load() finally: > +listener.unsetuid() as the EUID is a property of the UNIX process, which must be reset always (Bug #34324). Created attachment 6079 [details]
Skip writing cache if process has no write permission
(In reply to Philipp Hahn from comment #2) > Created attachment 6079 [details] > Skip writing cache if process has no write permission OK, merged patch to errara3.2-3 and UCS 4.0 YAML: 2014-08-28-univention-config-registry.yaml Test: OK, I was able to reproduce it with the old version but not with the erratum YAML: I think we could also release the UCR package for UCS 3.2-2-errata → Reopen 2014-08-28-univention-config-registry.yaml +version: [2,3] OK |