On Mon, Apr 18, 2016 at 02:51:37PM +0300, Yuriy M. Kaminskiy wrote: > Karel Zak <kzak@xxxxxxxxxx> writes: > > > On Fri, Mar 18, 2016 at 05:26:25AM +0300, Yuriy M. Kaminskiy wrote: > >> I think this issue should be at least documented. And, maybe, default > >> `--propagation` should be changed to `slave`. > > > > The reason why we use 'private' is that it's the kernel default for > > years and it's what has been expected by users for long time before we > > introduced --propagation and any unshare(1) default. > > > > The current --propagation default unifies things and makes unshare(1) > > portable to distributions where root fs is mounted as 'shared' (e.g. > > systemd distros) and all this in backwardly compatible way for users > > who have no clue about --propagation. > > > > So, I don't think we want to change any default to corrupt scripts where > > is no explicitly specified --propagation. > > By you already broke scripts that expected old a-la '--propagation > unchanged' behavior. Only if your system uses something else that kernel default 'private' and you depend on this non-default setting. (IMHO relatively small groups of users) The old "--propagation unchanged" makes unshare useless on some mainstream distros where default is 'shared'. Anyway, we will not change any default now. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html