Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 296451 Details for
Bug 435551
PolicyKit ignores policy files on some filesystems (xfs).
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Using stat + some debug
PolicyKit-atu-stat.patch (text/plain), 1.74 KB, created by
Anton Guda
on 2008-03-01 13:28:28 UTC
(
hide
)
Description:
Using stat + some debug
Filename:
MIME Type:
Creator:
Anton Guda
Created:
2008-03-01 13:28:28 UTC
Size:
1.74 KB
patch
obsolete
>diff -r -u PolicyKit-0.7.orig/src/polkit/polkit-policy-cache.c PolicyKit-0.7/src/polkit/polkit-policy-cache.c >--- PolicyKit-0.7.orig/src/polkit/polkit-policy-cache.c 2007-11-29 08:14:09.000000000 +0200 >+++ PolicyKit-0.7/src/polkit/polkit-policy-cache.c 2008-02-12 19:57:42.637128560 +0200 >@@ -44,6 +44,7 @@ > #include <syslog.h> > #include <fcntl.h> > #include <dirent.h> >+#include <sys/stat.h> > > #include "polkit-debug.h" > #include "polkit-policy-file.h" >@@ -100,6 +101,7 @@ > DIR *dir; > struct dirent64 *d; > PolKitPolicyCache *pc; >+ struct stat st; > > dir = NULL; > >@@ -127,13 +129,23 @@ > char *filename; > static const char suffix[] = ".policy"; > >- if (d->d_type != DT_REG) >+ _pk_debug( " file <%s> type %X\n", d->d_name, d->d_type ); >+ >+ /*if (d->d_type != DT_REG) > continue; >+ */ >+ >+ if( d->d_name[0] == '.' ) /* ignore .dot files */ >+ continue; >+ >+ _pk_debug( ": " ); > > filename = d->d_name; > name_len = strlen (filename); > if (name_len < sizeof (suffix) || strcmp ((filename + name_len - sizeof (suffix) + 1), suffix) != 0) > continue; >+ >+ _pk_debug( ". " ); > > path = kit_strdup_printf ("%s/%s", dirname, filename); > if (path == NULL) { >@@ -141,6 +153,13 @@ > goto out; > } > >+ if( stat( path, &st ) != 0 ) { >+ _pk_debug( "stat for <%s> failed %m\n", path ); >+ continue; >+ } >+ if( ! S_ISREG( st.st_mode ) ) >+ continue; >+ > _pk_debug ("Loading %s", path); > pk_error = NULL; > pf = polkit_policy_file_new (path, load_descriptions, &pk_error);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 435551
: 296451