Hi,
I am investigating
https://bugzilla.redhat.com/show_bug.cgi?id=1336750
and honestly I'm not sure what is the right solution.
Right now we use unshare() for CLONE_NEWNS, CLONE_NEWUTS, CLONE_NEWIPC.
I can detect if mock is running inside of container and then skip those unshare.
But... What if I am running there some application *and* mock. In the same container. That can be risky. However we can
just document it and let the user shoot into its own leg.
Or we can just document that you need to gave the containter privileges to run unshare().
Or we can just leave it as it is and do not support run inside of container.
Any thoughts?
--
Miroslav Suchy, RHCA
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys
Hi,
I just released Mock 1.3.2. I build this one only for rawhide and F25.
To get more testers for the /usr/sbin move.
Additionally to 1.3.1 there are:
* --nocheck is working again
[GH#2](https://github.com/rpm-software-management/mock/issues/2)
* You can now run mock inside of Docker
[RHBZ#1336750](http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=1336750)
- however you need to run docker with `-cap-add=SYS_ADMIN`.
* When building for Fedora 25+ target in container, then buildhost is
set to name of host and not to name of container.
[RHBZ#1302040](http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=1302040)
These are the new defaults:
```
## When RPM is build in container then build hostname is set to name of
## container. This sets the build hostname to name of container's host.
## Works only in F25+ chroots
# config_opts['use_container_host_hostname'] = True
## This works in F25+ chroots. This overrides
'use_container_host_hostname' option
# config_opts['macros']['%_buildhost'] = 'my.own.hostname'
```
* There was a lot of flake8/pep8/pycodestyle clean up of code.
Full release notes:
https://github.com/rpm-software-management/mock/wiki/Release-Notes-1.3.2
Mirek
Hi,
I got a bug report that ask to make fakechroot a multilib package [1],
but I can't find how or where I do that, I presume is in one mash
configuration ...
What should I do ? at least to know if fakechroot can be add as
multilib and or if should be add as multilib .
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1241555
Thanks,
--
Sérgio M. B.