X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=backend%2Fusb-darwin.c;h=0733891b1ba9917c4f74a9a0c97acc7f4c879b00;hb=07ed0e9a4385437b52e7195b681e600c2f1c5623;hp=a41dfbf380cd3999dbf92ea9a75abc9a166f71fe;hpb=84315f460a5c9eb38f7fcc4204acf98ed2b29406;p=thirdparty%2Fcups.git diff --git a/backend/usb-darwin.c b/backend/usb-darwin.c index a41dfbf38..0733891b1 100644 --- a/backend/usb-darwin.c +++ b/backend/usb-darwin.c @@ -1,7 +1,7 @@ /* * "$Id: usb-darwin.c 7953 2008-09-17 01:43:19Z mike $" * -* Copyright 2005-2010 Apple Inc. All rights reserved. +* Copyright 2005-2011 Apple Inc. All rights reserved. * * IMPORTANT: This Apple software is supplied to you by Apple Computer, * Inc. ("Apple") in consideration of your agreement to the following @@ -1435,9 +1435,15 @@ static kern_return_t load_classdriver(CFStringRef driverPath, "permissions (0%o/uid=%d/gid=%d).\n", bundlestr, bundleinfo.st_mode, (int)bundleinfo.st_uid, (int)bundleinfo.st_gid); - fputs("STATE: +cups-insecure-filter-warning\n", stderr); - - if (bundleinfo.st_uid || (bundleinfo.st_mode & S_IWOTH)) + if (bundleinfo.st_uid || + (bundleinfo.st_gid && bundleinfo.st_gid != 80 && + (bundleinfo.st_mode & S_IWGRP)) || + (bundleinfo.st_mode & (S_ISUID | S_IWOTH))) + fputs("STATE: +cups-insecure-filter-warning\n", stderr); + + if (bundleinfo.st_uid || + (bundleinfo.st_gid && bundleinfo.st_gid != 80 && + (bundleinfo.st_mode & S_IWOTH))) { if (driverPath) return (load_classdriver(NULL, intf, printerDriver));