diff options
author | Colin Watson <cjwatson@debian.org> | 2014-02-09 16:09:58 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2014-03-20 00:32:28 +0000 |
commit | 77638f6662ecd8500e1b97e537233b1277ca829f (patch) | |
tree | b293efadbfda75975145c839e07781aacaab5880 /platform.c | |
parent | 7a26d16efb4ee303c8d66ee82caf9d0686f4a074 (diff) |
Allow harmless group-writability
Allow secure files (~/.ssh/config, ~/.ssh/authorized_keys, etc.) to be
group-writable, provided that the group in question contains only the file's
owner. Rejected upstream for IMO incorrect reasons (e.g. a misunderstanding
about the contents of gr->gr_mem). Given that per-user groups and umask 002
are the default setup in Debian (for good reasons - this makes operating in
setgid directories with other groups much easier), we need to permit this by
default.
Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1060
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=314347
Last-Update: 2013-09-14
Patch-Name: user-group-modes.patch
Diffstat (limited to 'platform.c')
-rw-r--r-- | platform.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/platform.c b/platform.c index 4aab9a9cd..f99de7fab 100644 --- a/platform.c +++ b/platform.c | |||
@@ -196,19 +196,3 @@ platform_krb5_get_principal_name(const char *pw_name) | |||
196 | return NULL; | 196 | return NULL; |
197 | #endif | 197 | #endif |
198 | } | 198 | } |
199 | |||
200 | /* | ||
201 | * return 1 if the specified uid is a uid that may own a system directory | ||
202 | * otherwise 0. | ||
203 | */ | ||
204 | int | ||
205 | platform_sys_dir_uid(uid_t uid) | ||
206 | { | ||
207 | if (uid == 0) | ||
208 | return 1; | ||
209 | #ifdef PLATFORM_SYS_DIR_UID | ||
210 | if (uid == PLATFORM_SYS_DIR_UID) | ||
211 | return 1; | ||
212 | #endif | ||
213 | return 0; | ||
214 | } | ||