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 701377 Details for
Bug 894623
OSError: [Errno 12] Cannot allocate memory / mock broken after latest rawhide upgrade
[?]
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]
experiment with unshare() and CLONE_NEWPID
unshare-CLONE_NEWPID.patch (text/plain), 1.36 KB, created by
Clark Williams
on 2013-02-22 22:11:21 UTC
(
hide
)
Description:
experiment with unshare() and CLONE_NEWPID
Filename:
MIME Type:
Creator:
Clark Williams
Created:
2013-02-22 22:11:21 UTC
Size:
1.36 KB
patch
obsolete
>diff --git a/py/mock.py b/py/mock.py >index ca94789..30c107f 100755 >--- a/py/mock.py >+++ b/py/mock.py >@@ -763,9 +763,10 @@ def main(ret): > > # New namespace starting from here > base_unshare_flags = mockbuild.util.CLONE_NEWNS >- extended_unshare_flags = base_unshare_flags|mockbuild.util.CLONE_NEWPID|mockbuild.util.CLONE_NEWIPC|mockbuild.util.CLONE_NEWUTS >+ extended_unshare_flags = base_unshare_flags|mockbuild.util.CLONE_NEWIPC|mockbuild.util.CLONE_NEWUTS > try: > mockbuild.util.unshare(extended_unshare_flags) >+ log.info("unshare with extended flags succeeded") > except mockbuild.exception.UnshareFailed, e: > log.debug("unshare(%d) failed, falling back to unshare(%d)" % (extended_unshare_flags, base_unshare_flags)) > try: >@@ -773,6 +774,18 @@ def main(ret): > except mockbuild.exception.UnshareFailed, e: > log.error("Namespace unshare failed.") > sys.exit(e.resultcode) >+ log.info("unshare with base flags succeeded") >+ >+ #now try unsharing the PID namespace >+ try: >+ mockbuild.util.unshare(mockbuild.util.CLONE_NEWPID) >+ pid = os.fork() >+ if pid: >+ os.waitpid(pid, 0) >+ log.info("unshare of pidns suceeded") >+ except: >+ log.info("unshare of pidns failed") >+ pass > > # set personality (ie. setarch) > if config_opts['internal_setarch']:
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 894623
:
686858
| 701377