diff options
| author | Alex Kost <alezost@gmail.com> | 2015-06-15 13:18:20 +0300 |
|---|---|---|
| committer | Alex Kost <alezost@gmail.com> | 2015-06-16 21:24:13 +0300 |
| commit | f5a9ffa006687c6759e3d329159dc938b4a705ea (patch) | |
| tree | cd107e55097b4d8eb2be26714b5b908d7a59a908 | |
| parent | 01e64ef50434e663b0f3488dcba0b99bf6ed7a83 (diff) | |
system: Rename 'sudoers' into 'sudoers-file'.
* gnu/system.scm (<operating-system>): Rename record field.
(etc-directory): Rename argument.
(operating-system-etc-directory): Adjust accordingly.
* doc/guix.texi (operating-system Reference): Likewise.
| -rw-r--r-- | doc/guix.texi | 4 | ||||
| -rw-r--r-- | gnu/system.scm | 15 |
2 files changed, 10 insertions, 9 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index f707b5c58f9..1c7f4e12325 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -4606,8 +4606,8 @@ Linux @dfn{pluggable authentication module} (PAM) services. | |||
| 4606 | List of string-valued G-expressions denoting setuid programs. | 4606 | List of string-valued G-expressions denoting setuid programs. |
| 4607 | @xref{Setuid Programs}. | 4607 | @xref{Setuid Programs}. |
| 4608 | 4608 | ||
| 4609 | @item @code{sudoers} (default: @var{%sudoers-specification}) | 4609 | @item @code{sudoers-file} (default: @var{%sudoers-specification}) |
| 4610 | @cindex sudoers | 4610 | @cindex sudoers file |
| 4611 | The contents of the @file{/etc/sudoers} file as a file-like object | 4611 | The contents of the @file{/etc/sudoers} file as a file-like object |
| 4612 | (@pxref{G-Expressions, @code{local-file} and @code{plain-file}}). | 4612 | (@pxref{G-Expressions, @code{local-file} and @code{plain-file}}). |
| 4613 | 4613 | ||
diff --git a/gnu/system.scm b/gnu/system.scm index 92ed454b2c0..565d6c10c75 100644 --- a/gnu/system.scm +++ b/gnu/system.scm | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> | 3 | ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> |
| 4 | ;;; Copyright © 2015 Alex Kost <alezost@gmail.com> | ||
| 4 | ;;; | 5 | ;;; |
| 5 | ;;; This file is part of GNU Guix. | 6 | ;;; This file is part of GNU Guix. |
| 6 | ;;; | 7 | ;;; |
| @@ -148,8 +149,8 @@ | |||
| 148 | (setuid-programs operating-system-setuid-programs | 149 | (setuid-programs operating-system-setuid-programs |
| 149 | (default %setuid-programs)) ; list of string-valued gexps | 150 | (default %setuid-programs)) ; list of string-valued gexps |
| 150 | 151 | ||
| 151 | (sudoers operating-system-sudoers ; file-like | 152 | (sudoers-file operating-system-sudoers-file ; file-like |
| 152 | (default %sudoers-specification))) | 153 | (default %sudoers-specification))) |
| 153 | 154 | ||
| 154 | 155 | ||
| 155 | ;;; | 156 | ;;; |
| @@ -440,7 +441,7 @@ on SHELLS. /etc/shells is used by xterm, polkit, and other programs." | |||
| 440 | (pam-services '()) | 441 | (pam-services '()) |
| 441 | (profile "/run/current-system/profile") | 442 | (profile "/run/current-system/profile") |
| 442 | hosts-file nss (shells '()) | 443 | hosts-file nss (shells '()) |
| 443 | (sudoers (plain-file "sudoers" ""))) | 444 | (sudoers-file (plain-file "sudoers" ""))) |
| 444 | "Return a derivation that builds the static part of the /etc directory." | 445 | "Return a derivation that builds the static part of the /etc directory." |
| 445 | (mlet* %store-monad | 446 | (mlet* %store-monad |
| 446 | ((pam.d (pam-services->directory pam-services)) | 447 | ((pam.d (pam-services->directory pam-services)) |
| @@ -540,7 +541,7 @@ fi\n")) | |||
| 540 | ("hosts" ,#~#$hosts-file) | 541 | ("hosts" ,#~#$hosts-file) |
| 541 | ("localtime" ,#~(string-append #$tzdata "/share/zoneinfo/" | 542 | ("localtime" ,#~(string-append #$tzdata "/share/zoneinfo/" |
| 542 | #$timezone)) | 543 | #$timezone)) |
| 543 | ("sudoers" ,sudoers))))) | 544 | ("sudoers" ,sudoers-file))))) |
| 544 | 545 | ||
| 545 | (define (operating-system-profile os) | 546 | (define (operating-system-profile os) |
| 546 | "Return a derivation that builds the system profile of OS." | 547 | "Return a derivation that builds the system profile of OS." |
| @@ -624,9 +625,9 @@ use 'plain-file' instead~%") | |||
| 624 | #:timezone (operating-system-timezone os) | 625 | #:timezone (operating-system-timezone os) |
| 625 | #:hosts-file /etc/hosts | 626 | #:hosts-file /etc/hosts |
| 626 | #:shells shells | 627 | #:shells shells |
| 627 | #:sudoers (maybe-string->file | 628 | #:sudoers-file (maybe-string->file |
| 628 | "sudoers" | 629 | "sudoers" |
| 629 | (operating-system-sudoers os)) | 630 | (operating-system-sudoers-file os)) |
| 630 | #:profile profile-drv))) | 631 | #:profile profile-drv))) |
| 631 | 632 | ||
| 632 | (define %setuid-programs | 633 | (define %setuid-programs |
