Make Namespace copyable, movable and copy/move assignable

There is no strong reason why this shouln't be the case.
Some future refactorings will depend on this.

PiperOrigin-RevId: 553456024
Change-Id: I452a2804c59ed006326ab37cbe0dec80f53cd714
This commit is contained in:
Wiktor Garbacz 2023-08-03 06:20:21 -07:00 committed by Copybara-Service
parent 29b7b49325
commit 3f9e9a2b25

View File

@ -38,10 +38,6 @@ class Namespace final {
bool allow_mount_propagation); bool allow_mount_propagation);
static void InitializeInitialNamespaces(uid_t uid, gid_t gid); static void InitializeInitialNamespaces(uid_t uid, gid_t gid);
Namespace() = delete;
Namespace(const Namespace&) = delete;
Namespace& operator=(const Namespace&) = delete;
Namespace(bool allow_unrestricted_networking, Mounts mounts, Namespace(bool allow_unrestricted_networking, Mounts mounts,
std::string hostname, bool allow_mount_propagation); std::string hostname, bool allow_mount_propagation);