diff options
| author | Joakim Verona | 2012-03-06 09:23:09 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-03-06 09:23:09 +0100 |
| commit | 28485daaf752ff5264ed2f6a32ec15588beaa929 (patch) | |
| tree | a480205aa664c61b1d212833144c0a2d44f7ac01 /src/fileio.c | |
| parent | e8e42079e76ca6255bbd53312994ba8e1b3b0ee8 (diff) | |
| parent | 2e86d8576c668e149cc100f3222bcf19b38019dc (diff) | |
| download | emacs-28485daaf752ff5264ed2f6a32ec15588beaa929.tar.gz emacs-28485daaf752ff5264ed2f6a32ec15588beaa929.zip | |
upstream
Diffstat (limited to 'src/fileio.c')
| -rw-r--r-- | src/fileio.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/fileio.c b/src/fileio.c index 839dc07b6ce..7efe919a9f0 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2798,9 +2798,13 @@ See `file-symlink-p' to distinguish symlinks. */) | |||
| 2798 | 2798 | ||
| 2799 | DEFUN ("file-selinux-context", Ffile_selinux_context, | 2799 | DEFUN ("file-selinux-context", Ffile_selinux_context, |
| 2800 | Sfile_selinux_context, 1, 1, 0, | 2800 | Sfile_selinux_context, 1, 1, 0, |
| 2801 | doc: /* Return SELinux context of file named FILENAME, | 2801 | doc: /* Return SELinux context of file named FILENAME. |
| 2802 | as a list ("user", "role", "type", "range"). Return (nil, nil, nil, nil) | 2802 | The return value is a list (USER ROLE TYPE RANGE), where the list |
| 2803 | if file does not exist, is not accessible, or SELinux is disabled */) | 2803 | elements are strings naming the user, role, type, and range of the |
| 2804 | file's SELinux security context. | ||
| 2805 | |||
| 2806 | Return (nil nil nil nil) if the file is nonexistent or inaccessible, | ||
| 2807 | or if SELinux is disabled, or if Emacs lacks SELinux support. */) | ||
| 2804 | (Lisp_Object filename) | 2808 | (Lisp_Object filename) |
| 2805 | { | 2809 | { |
| 2806 | Lisp_Object absname; | 2810 | Lisp_Object absname; |
| @@ -2853,9 +2857,12 @@ if file does not exist, is not accessible, or SELinux is disabled */) | |||
| 2853 | 2857 | ||
| 2854 | DEFUN ("set-file-selinux-context", Fset_file_selinux_context, | 2858 | DEFUN ("set-file-selinux-context", Fset_file_selinux_context, |
| 2855 | Sset_file_selinux_context, 2, 2, 0, | 2859 | Sset_file_selinux_context, 2, 2, 0, |
| 2856 | doc: /* Set SELinux context of file named FILENAME to CONTEXT | 2860 | doc: /* Set SELinux context of file named FILENAME to CONTEXT. |
| 2857 | as a list ("user", "role", "type", "range"). Has no effect if SELinux | 2861 | CONTEXT should be a list (USER ROLE TYPE RANGE), where the list |
| 2858 | is disabled. */) | 2862 | elements are strings naming the components of a SELinux context. |
| 2863 | |||
| 2864 | This function does nothing if SELinux is disabled, or if Emacs was not | ||
| 2865 | compiled with SELinux support. */) | ||
| 2859 | (Lisp_Object filename, Lisp_Object context) | 2866 | (Lisp_Object filename, Lisp_Object context) |
| 2860 | { | 2867 | { |
| 2861 | Lisp_Object absname; | 2868 | Lisp_Object absname; |