linux-namespaces 0.2.0.0 → 0.2.0.1
raw patch · 3 files changed
+18/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ChangeLog.md +4/−0
- System/Linux/Namespaces.hsc +13/−1
- linux-namespaces.cabal +1/−1
ChangeLog.md view
@@ -1,3 +1,7 @@+#### 0.2.0.1 *2024-12-16*++ * Fix build with pre 5.6 linux-headers, where there is no support for time namespaces.+ #### 0.2.0.0 *2024-11-29* * Add support for CGroup and time namespaces.
System/Linux/Namespaces.hsc view
@@ -74,7 +74,15 @@ -------------------------------------------------------------------------------- -- | Types of namespaces.-data Namespace = IPC | Network | Mount | PID | User | UTS | CGroup | Time+data Namespace+ = IPC+ | Network+ | Mount+ | PID+ | User+ | UTS+ | CGroup+ | Time deriving (Show, Read, Eq, Bounded, Enum) toCloneFlags :: Namespace -> CInt@@ -87,7 +95,11 @@ User -> (#const CLONE_NEWUSER) UTS -> (#const CLONE_NEWUTS) CGroup -> (#const CLONE_NEWCGROUP)+#ifdef CLONE_NEWTIME Time -> (#const CLONE_NEWTIME)+#else+ Time -> error "CLONE_NEWTIME is not defined"+#endif toProcName :: Namespace -> String toProcName ns =
linux-namespaces.cabal view
@@ -1,5 +1,5 @@ name: linux-namespaces-version: 0.2.0.0+version: 0.2.0.1 synopsis: Work with linux namespaces: create new or enter existing ones description: This library provides bindings to the @unshare(2)@ and @setns(2)@ linux