[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/15: build: syscalls: Add additional mount flags.
From: |
David Thompson |
Subject: |
01/15: build: syscalls: Add additional mount flags. |
Date: |
Mon, 06 Jul 2015 13:02:48 +0000 |
davexunit pushed a commit to branch wip-container
in repository guix.
commit bc2f2c347020b57e564a458b4ed8265559b3c30a
Author: David Thompson <address@hidden>
Date: Sun May 31 21:40:29 2015 -0400
build: syscalls: Add additional mount flags.
* guix/build/syscalls.scm (MS_NOSUID, MS_NODEV, MS_NOEXEC, MS_STRICTATIME):
New variables.
---
guix/build/syscalls.scm | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm
index 3585bf2..ec1ce89 100644
--- a/guix/build/syscalls.scm
+++ b/guix/build/syscalls.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2015 Ludovic Courtès <address@hidden>
+;;; Copyright © 2015 David Thompson <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -26,9 +27,13 @@
#:use-module (ice-9 ftw)
#:export (errno
MS_RDONLY
+ MS_NOSUID
+ MS_NODEV
+ MS_NOEXEC
MS_REMOUNT
MS_BIND
MS_MOVE
+ MS_STRICTATIME
restart-on-EINTR
mount
umount
@@ -136,10 +141,14 @@
entries))))
;; Linux mount flags, from libc's <sys/mount.h>.
-(define MS_RDONLY 1)
-(define MS_REMOUNT 32)
-(define MS_BIND 4096)
-(define MS_MOVE 8192)
+(define MS_RDONLY 1)
+(define MS_NOSUID 2)
+(define MS_NODEV 4)
+(define MS_NOEXEC 8)
+(define MS_REMOUNT 32)
+(define MS_BIND 4096)
+(define MS_MOVE 8192)
+(define MS_STRICTATIME 16777216)
(define mount
(let* ((ptr (dynamic-func "mount" (dynamic-link)))
- branch wip-container created (now eac501a), David Thompson, 2015/07/06
- 04/15: utils: Add call-with-temporary-directory., David Thompson, 2015/07/06
- 01/15: build: syscalls: Add additional mount flags.,
David Thompson <=
- 09/15: gnu: system: Move <file-system-mapping> into (gnu system file-systems)., David Thompson, 2015/07/06
- 03/15: build: syscalls: Add mkdtemp!, David Thompson, 2015/07/06
- 11/15: gnu: system: Add Linux container module., David Thompson, 2015/07/06
- 10/15: gnu: system: Move file-system->spec to (gnu system file-systems)., David Thompson, 2015/07/06
- 12/15: gnu: system: Add Linux container file systems., David Thompson, 2015/07/06
- 06/15: build: syscalls: Add setns syscall wrapper., David Thompson, 2015/07/06
- 08/15: gnu: build: Add Linux container module., David Thompson, 2015/07/06
- 15/15: scripts: Add 'container' subcommand., David Thompson, 2015/07/06
- 02/15: build: syscalls: Add unmount flags., David Thompson, 2015/07/06
- 07/15: build: syscalls: Add pivot-root., David Thompson, 2015/07/06