|
Bugzilla – Full Text Bug Listing |
| Summary: | nspluginviewer tries to access /root/.mozilla/plugins/nppdf.so | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.0 | Reporter: | Harald Koenig <koenig> |
| Component: | Other | Assignee: | Stanislav Brabec <sbrabec> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | ||
| Version: | Factory | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Bug Depends on: | |||
| Bug Blocks: | 350752 | ||
|
Description
Harald Koenig
2008-04-28 14:10:19 UTC
I seen this problem as well, but I believed that it is caused by my experiments. Looking at the code, author seems to be aware of this problem:
src/npw-config.c:682
int mode = 0700;
if (geteuid() == 0 && strcmp(plugin_dir, "/root") != 0)
mode = 0755;
This apparently does not work, if /root itself is not accessible for users.
I see several possible fixes:
- Disallow installation of custom plugins for root. (Simple, ugly.)
- Implement --system command line option and never touch system paths without --system (and vice versa) (Clean, a bit more complicated, but changes interface.)
- Modify binary to run plugin registration twice for root - once as user, once for system plugins.
Created another solution: Differentiate between user and system paths and never try to install home plugin to system path. It's too late for 11.0. Not submitting the fix as an online update for 11.0 yet, as it requires more invasive changes to npw-config.c and I am not sure, whether more people are affected. If more people will be affected, I will change my opinion and ask for it. Submitted to Factory (11.1). Patch sent to upstream. Fix put into home:sbrabec:backports. Fix for 10.3 and 11.0 was submitted as a part of larger fix. released |