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 152703 Details for
Bug 236591
add an option to stay on one filesystem with restorecon
[?]
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]
implementation
policycoreutils-restorecon-onefsys.patch (text/plain), 1.58 KB, created by
Jeremy Katz
on 2007-04-16 17:20:37 UTC
(
hide
)
Description:
implementation
Filename:
MIME Type:
Creator:
Jeremy Katz
Created:
2007-04-16 17:20:37 UTC
Size:
1.58 KB
patch
obsolete
>--- policycoreutils-2.0.7/restorecon/restorecon.c.onefs 2007-04-02 14:35:37.000000000 -0400 >+++ policycoreutils-2.0.7/restorecon/restorecon.c 2007-04-02 14:48:05.000000000 -0400 >@@ -16,6 +16,7 @@ > * -v Show changes in file labels. > * -o filename save list of files with incorrect context > * -F Force reset of context to match file_context for customizable files >+ * -l Limit directory tree walk to a single filesystem > * > * pathname... The file(s) to label > * >@@ -50,6 +51,7 @@ > static int recurse = 0; > static int file_exist = 1; > static int force = 0; >+static int onefs = 0; > #define STAT_BLOCK_SIZE 1 > static int pipe_fds[2] = { -1, -1 }; > static unsigned long long count = 0; >@@ -326,13 +328,15 @@ > rc = fork(); > if (rc == 0) { > close(pipe_fds[0]); >- nftw(buf, pre_stat, 1024, FTW_PHYS); >+ nftw(buf, pre_stat, 1024, >+ FTW_PHYS | (onefs ? FTW_MOUNT : 0)); > exit(1); > } > if (rc > 0) > close(pipe_fds[1]); > if (rc == -1 || rc > 0) { >- if (nftw(buf, apply_spec, 1024, FTW_PHYS)) { >+ if (nftw(buf, apply_spec, 1024, >+ FTW_PHYS | (onefs ? FTW_MOUNT : 0))) { > if (!file_exist && errno == ENOENT) > return; > fprintf(stderr, >@@ -367,11 +371,14 @@ > > set_matchpathcon_flags(MATCHPATHCON_NOTRANS); > >- while ((opt = getopt(argc, argv, "ipFrRnvf:o:e:")) > 0) { >+ while ((opt = getopt(argc, argv, "ipFrRnvfl:o:e:")) > 0) { > switch (opt) { > case 'n': > change = 0; > break; >+ case 'l': >+ onefs = 1; >+ break; > case 'i': > file_exist = 0; > break;
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 236591
: 152703