From owner-trustedbsd-cvs@FreeBSD.ORG Mon Jan 22 20:11:31 2007 Return-Path: X-Original-To: trustedbsd-cvs@freebsd.org Delivered-To: trustedbsd-cvs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 33D8C16A402 for ; Mon, 22 Jan 2007 20:11:31 +0000 (UTC) (envelope-from owner-perforce@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0DE3D13C474 for ; Mon, 22 Jan 2007 20:11:29 +0000 (UTC) (envelope-from owner-perforce@freebsd.org) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by cyrus.watson.org (Postfix) with ESMTP id 7B4704892D for ; Mon, 22 Jan 2007 15:11:23 -0500 (EST) Received: from hub.freebsd.org (hub.freebsd.org [69.147.83.54]) by mx2.freebsd.org (Postfix) with ESMTP id 03AB4D1168; Mon, 22 Jan 2007 20:00:00 +0000 (GMT) (envelope-from owner-perforce@freebsd.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 372FA16A6E7; Mon, 22 Jan 2007 19:59:03 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1029716A6B3 for ; Mon, 22 Jan 2007 19:59:03 +0000 (UTC) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id F3E9413C474 for ; Mon, 22 Jan 2007 19:59:02 +0000 (UTC) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l0MJx225085366 for ; Mon, 22 Jan 2007 19:59:02 GMT (envelope-from millert@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l0MJx2F4085356 for perforce@freebsd.org; Mon, 22 Jan 2007 19:59:02 GMT (envelope-from millert@freebsd.org) Date: Mon, 22 Jan 2007 19:59:02 GMT Message-Id: <200701221959.l0MJx2F4085356@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to millert@freebsd.org using -f From: Todd Miller To: Perforce Change Reviews Cc: Subject: PERFORCE change 113397 for review X-BeenThere: trustedbsd-cvs@FreeBSD.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: TrustedBSD CVS and Perforce commit message list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2007 20:11:31 -0000 http://perforce.freebsd.org/chv.cgi?CH=113397 Change 113397 by millert@millert_macbook on 2007/01/22 19:58:33 Clean up notifyd. Affected files ... .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/mDNSResponder.te#7 edit .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/memberd.te#6 edit .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/notifyd.te#6 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/mDNSResponder.te#7 (text+ko) ==== @@ -73,6 +73,9 @@ # Use Frameworks frameworks_read(mDNSResponder_t) +# Allow shared memory usage w/ notifyd +notifyd_allow_shm(mDNSResponder_t) + # Read prefs darwin_allow_global_pref_read(mDNSResponder_t) darwin_allow_host_pref_read(mDNSResponder_t) ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/memberd.te#6 (text+ko) ==== @@ -55,6 +55,9 @@ # Talk to WindowServer WindowServer_allow_ipc(memberd_t) +# Allow shared memory usage w/ notifyd +notifyd_allow_shm(memberd_t) + # Use Frameworks frameworks_read(memberd_t) ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/notifyd.te#6 (text+ko) ==== @@ -24,7 +24,11 @@ ## internal communication is often done using fifo and unix sockets. allow notifyd_t self:fifo_file { read write }; allow notifyd_t self:unix_stream_socket create_stream_socket_perms; +allow notifyd_t self:socket connect; +allow notifyd_t self:shm { create setattr write read }; +# Perform filesystem operations +fs_getattr_xattr_fs(notifyd_t) # Misc allow notifyd_t mnt_t:dir { getattr search }; allow notifyd_t nfs_t:lnk_file { getattr read }; @@ -32,12 +36,18 @@ # Talk to self mach_allow_message(notifyd_t, notifyd_t) +# Allow bootstrap lookups +init_allow_bootstrap(notifyd_t) + # Talk to kernel kernel_allow_ipc(notifyd_t) # Talk to launchd init_allow_ipc(notifyd_t) +# Allow communication with memberd +memberd_allow_ipc(notifyd_t) + # Talk to CoreServices allow notifyd_t coreservicesd_t:mach_port { hold_send_once send move_send_once }; @@ -47,3 +57,6 @@ # Read /private darwin_allow_private_read(notifyd_t) + +# /var operations +files_read_var_symlinks(notifyd_t)