patches for easier mirroring, to eliminate a special copy, to make www.freebsd.org/security a full copy of security.freebsd.org and be eventually be the same. For now files are just sitting there. The symlinks are missing. Discussed on: www (repository location) Discussed with: simon (so)
18 lines
590 B
Diff
18 lines
590 B
Diff
Index: contrib/openpam/lib/openpam_configure.c
|
|
===================================================================
|
|
--- contrib/openpam/lib/openpam_configure.c (revision 228383)
|
|
+++ contrib/openpam/lib/openpam_configure.c (revision 228384)
|
|
@@ -285,6 +285,13 @@
|
|
size_t len;
|
|
int r;
|
|
|
|
+ /* don't allow to escape from policy_path */
|
|
+ if (strchr(service, '/')) {
|
|
+ openpam_log(PAM_LOG_ERROR, "invalid service name: %s",
|
|
+ service);
|
|
+ return (-PAM_SYSTEM_ERR);
|
|
+ }
|
|
+
|
|
for (path = openpam_policy_path; *path != NULL; ++path) {
|
|
len = strlen(*path);
|
|
if ((*path)[len - 1] == '/') {
|