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 195791 Details for
Bug 235141
mock 0.6.13 is unable to clean buildroot if any package sets immutable bit
[?]
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]
chattr -i patch upgraded for mock-0.7.6
mock-0.7.6-chattr-i.patch (text/plain), 2.77 KB, created by
Tuomo Soini
on 2007-09-14 12:22:50 UTC
(
hide
)
Description:
chattr -i patch upgraded for mock-0.7.6
Filename:
MIME Type:
Creator:
Tuomo Soini
Created:
2007-09-14 12:22:50 UTC
Size:
2.77 KB
patch
obsolete
>--- mock-0.7.6/mock.py.chattr 2007-08-27 20:32:01.000000000 +0300 >+++ mock-0.7.6/mock.py 2007-09-14 13:45:01.000000000 +0300 >@@ -199,9 +199,21 @@ > (retval, output) = self.do(cmd) > > if retval != 0: >- error(output) > if os.path.exists(self.rootdir): >- raise RootError, "Failed to clean basedir, exiting" >+ cmd = '%s -R -i %s' % (self.config['chattr'], self.basedir) >+ (retval, output) = self.do(cmd) >+ >+ if retval != 0: >+ error(output) >+ raise RootError, "Failed to chattr basedir, exiting" >+ else: >+ cmd = '%s -rf %s' % (self.config['rm'], self.basedir) >+ (retval, output) = self.do(cmd) >+ >+ if retval != 0: >+ error(output) >+ if os.path.exists(self.rootdir): >+ raise RootError, "Failed to clean basedir, exiting" > > > def state(self, curstate=None): >@@ -872,6 +884,7 @@ > config_opts['orphanskill'] = '/usr/sbin/mock-helper orphanskill' > config_opts['umount'] = '/usr/sbin/mock-helper umount' > config_opts['rm'] = '/usr/sbin/mock-helper rm' >+ config_opts['chattr'] = '/usr/sbin/mock-helper chattr' > config_opts['mknod'] = '/usr/sbin/mock-helper mknod' > config_opts['yum'] = '/usr/sbin/mock-helper yum' > config_opts['chmod'] = '/usr/sbin/mock-helper chmod' >--- mock-0.7.6/src/mock-helper.c.chattr 2007-08-27 20:32:01.000000000 +0300 >+++ mock-0.7.6/src/mock-helper.c 2007-09-14 13:53:54.000000000 +0300 >@@ -213,6 +213,32 @@ > */ > > >+/* clean out a immutable bit from chroot dir */ >+void >+do_chattr (int argc, char *argv[]) >+{ >+ /* enough arguments ? mock-helper chattr -R -i (rootdir), 5 */ >+ if (argc < 5) >+ error ("not enough arguments"); >+ >+ /* check for too many arguments */ >+ if (argc > 5) >+ error ("too many arguments"); >+ >+ /* see if we're doing chattr -R -i */ >+ if (strncmp ("-R", argv[2], 3) != 0) >+ error ("%s: options not allowed", argv[2]); >+ >+ if (strncmp ("-i", argv[3], 3) != 0) >+ error ("%s: options not allowed", argv[3]); >+ >+ /* see if we're doing -R -i on a dir under rootsdir */ >+ check_dir_allowed (argv[4]); >+ >+ /* all checks passed, execute */ >+ do_command ("/usr/bin/chattr", &(argv[1]), 0); >+} >+ > void > do_chroot (int argc, char *argv[]) > { >@@ -612,7 +638,9 @@ > if (argc < 2) usage (); > > /* see which command we are trying to run */ >- if (strncmp ("chroot", argv[1], 6) == 0) >+ if (strncmp ("chattr", argv[1], 6) == 0) >+ do_chattr (argc, argv); >+ else if (strncmp ("chroot", argv[1], 6) == 0) > do_chroot (argc, argv); > else if (strncmp ("mount", argv[1], 5) == 0) > do_mount (argc, argv);
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 235141
:
151626
|
154583
|
159768
| 195791