Bug 435551 - PolicyKit ignores policy files on some filesystems (xfs).
Summary: PolicyKit ignores policy files on some filesystems (xfs).
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: PolicyKit
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: David Zeuthen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-01 13:25 UTC by Anton Guda
Modified: 2013-03-06 03:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-06 04:20:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Using stat + some debug (1.74 KB, patch)
2008-03-01 13:28 UTC, Anton Guda
no flags Details | Diff

Description Anton Guda 2008-03-01 13:25:45 UTC
Description of problem:

PolicyKit uses non-standard d_type field of direntry structire.
Some filesystems (for example XFS) don't use (and don't fill) this field.
So, if /usr/share/PolicyKit/policy placed on such filesystem,
PolicyKit ignores all policy files.

Version-Release number of selected component (if applicable):

PolicyKit-0.7-6

How reproducible:
always 

Steps to Reproduce:
1. put  /usr/share/PolicyKit/policy to XFS filesystem
2. restart PolicyKit
3. try to mount usb drive, access to photo .....
  
Actual results:
All actions disabled (dy default w/o policy files).

Expected results:
Actions controlled by policy.

Additional info:

Comment 1 Anton Guda 2008-03-01 13:28:28 UTC
Created attachment 296451 [details]
Using stat + some debug

With this patch is works for me.
Some debug additions may be dropped.

Comment 2 David Zeuthen 2008-03-01 17:32:14 UTC
Already fixed upstream; will land in Rawhide before f9.

http://gitweb.freedesktop.org/?p=PolicyKit.git;a=commitdiff;h=0b59d3e7d4b282da308b362dc440b007b9ecedbf

Comment 3 Matthias Clasen 2008-04-06 04:20:02 UTC
Fix is in rawhide now


Note You need to log in before you can comment on or make changes to this bug.