<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>215869</bug_id>
          
          <creation_ts>2020-08-26 15:13:56 -0700</creation_ts>
          <short_desc>[macOS] Stop logging sandbox violations of com.apple.CoreDisplay.Notification</short_desc>
          <delta_ts>2020-08-27 09:53:00 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Per Arne Vollan">pvollan</reporter>
          <assigned_to name="Per Arne Vollan">pvollan</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>darin</cc>
    
    <cc>nham</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1683162</commentid>
    <comment_count>0</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2020-08-26 15:13:56 -0700</bug_when>
    <thetext>On macOS, stop logging mach-lookup sandbox violations of com.apple.CoreDisplay.Notification for performance reasons.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683164</commentid>
    <comment_count>1</comment_count>
      <attachid>407342</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2020-08-26 15:16:55 -0700</bug_when>
    <thetext>Created attachment 407342
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683167</commentid>
    <comment_count>2</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2020-08-26 15:17:37 -0700</bug_when>
    <thetext>&lt;rdar://problem/67831223&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683188</commentid>
    <comment_count>3</comment_count>
      <attachid>407353</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2020-08-26 16:29:10 -0700</bug_when>
    <thetext>Created attachment 407353
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683190</commentid>
    <comment_count>4</comment_count>
      <attachid>407353</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2020-08-26 16:33:37 -0700</bug_when>
    <thetext>Comment on attachment 407353
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=407353&amp;action=review

&gt; Source/WebKit/ChangeLog:8
&gt; +        On macOS, stop logging mach-lookup sandbox violations of com.apple.CoreDisplay.Notification for performance reasons.

This makes it sound like it’s something already denied, and this patch simply changes it to no-log.

&gt; Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:771
&gt; +#if __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 110000
&gt; +(deny mach-lookup (with no-log)
&gt; +    (global-name &quot;com.apple.CoreDisplay.Notification))
&gt; +#endif

But this is a new deny rule, not changing an existing one to no-log mode.

What am I missing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683202</commentid>
    <comment_count>5</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2020-08-26 16:57:19 -0700</bug_when>
    <thetext>(In reply to Darin Adler from comment #4)
&gt; Comment on attachment 407353 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=407353&amp;action=review
&gt; 
&gt; &gt; Source/WebKit/ChangeLog:8
&gt; &gt; +        On macOS, stop logging mach-lookup sandbox violations of com.apple.CoreDisplay.Notification for performance reasons.
&gt; 
&gt; This makes it sound like it’s something already denied, and this patch
&gt; simply changes it to no-log.
&gt; 

Yes, that is correct.

&gt; &gt; Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:771
&gt; &gt; +#if __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 110000
&gt; &gt; +(deny mach-lookup (with no-log)
&gt; &gt; +    (global-name &quot;com.apple.CoreDisplay.Notification))
&gt; &gt; +#endif
&gt; 
&gt; But this is a new deny rule, not changing an existing one to no-log mode.
&gt; 
&gt; What am I missing?

Yes, you are right. There is no previous rule for this service, so the default behavior is in effect, where the service is being denied, but with logging enabled.

This change is only changing the logging behavior.

Thanks for reviewing!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683209</commentid>
    <comment_count>6</comment_count>
      <attachid>407353</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2020-08-26 17:05:22 -0700</bug_when>
    <thetext>Comment on attachment 407353
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=407353&amp;action=review

&gt;&gt;&gt; Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:771
&gt;&gt;&gt; +#endif
&gt;&gt; 
&gt;&gt; But this is a new deny rule, not changing an existing one to no-log mode.
&gt;&gt; 
&gt;&gt; What am I missing?
&gt; 
&gt; Yes, you are right. There is no previous rule for this service, so the default behavior is in effect, where the service is being denied, but with logging enabled.
&gt; 
&gt; This change is only changing the logging behavior.
&gt; 
&gt; Thanks for reviewing!

Oh, didn’t realize that &quot;deny&quot; was default for everything. I guess that should have been obvious.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683212</commentid>
    <comment_count>7</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2020-08-26 17:07:58 -0700</bug_when>
    <thetext>(In reply to Darin Adler from comment #6)
&gt; Comment on attachment 407353 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=407353&amp;action=review
&gt; 
&gt; &gt;&gt;&gt; Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:771
&gt; &gt;&gt;&gt; +#endif
&gt; &gt;&gt; 
&gt; &gt;&gt; But this is a new deny rule, not changing an existing one to no-log mode.
&gt; &gt;&gt; 
&gt; &gt;&gt; What am I missing?
&gt; &gt; 
&gt; &gt; Yes, you are right. There is no previous rule for this service, so the default behavior is in effect, where the service is being denied, but with logging enabled.
&gt; &gt; 
&gt; &gt; This change is only changing the logging behavior.
&gt; &gt; 
&gt; &gt; Thanks for reviewing!
&gt; 
&gt; Oh, didn’t realize that &quot;deny&quot; was default for everything. I guess that
&gt; should have been obvious.

Actually, in some cases, &quot;allow&quot; is the default, but not in this case :)

Thanks for reviewing!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683257</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-08-26 18:58:37 -0700</bug_when>
    <thetext>Committed r266216: &lt;https://trac.webkit.org/changeset/266216&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 407353.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683412</commentid>
    <comment_count>9</comment_count>
      <attachid>407353</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2020-08-27 09:53:00 -0700</bug_when>
    <thetext>Comment on attachment 407353
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=407353&amp;action=review

&gt; Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:770
&gt; +    (global-name &quot;com.apple.CoreDisplay.Notification))

Missing double quote here :(

https://trac.webkit.org/changeset/266238/webkit</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>407342</attachid>
            <date>2020-08-26 15:16:55 -0700</date>
            <delta_ts>2020-08-26 16:29:08 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-215869-20200826151655.patch</filename>
            <type>text/plain</type>
            <size>1457</size>
            <attacher name="Per Arne Vollan">pvollan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XZWJL
aXQvQ2hhbmdlTG9nCShyZXZpc2lvbiAyNjYxOTUpCisrKyBTb3VyY2UvV2ViS2l0L0NoYW5nZUxv
Zwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBACisyMDIwLTA4LTI2ICBQZXIgQXJuZSBW
b2xsYW4gIDxwdm9sbGFuQGFwcGxlLmNvbT4KKworICAgICAgICBbbWFjT1NdIFN0b3AgbG9nZ2lu
ZyBzYW5kYm94IHZpb2xhdGlvbnMgb2YgY29tLmFwcGxlLkNvcmVEaXNwbGF5Lk5vdGlmaWNhdGlv
bgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjE1ODY5
CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgT24gbWFj
T1MsIHN0b3AgbG9nZ2luZyBtYWNoLWxvb2t1cCBzYW5kYm94IHZpb2xhdGlvbnMgb2YgY29tLmFw
cGxlLkNvcmVEaXNwbGF5Lk5vdGlmaWNhdGlvbiBmb3IgcGVyZm9ybWFuY2UgcmVhc29ucy4KKwor
ICAgICAgICBObyBuZXcgdGVzdHMsIHNpbmNlIHRoZXJlIGlzIG5vIGNoYW5nZSBpbiBiZWhhdmlv
ci4gVGhlIHNlcnZpY2Ugd2FzIGFscmVhZHkgYmVpbmcgZGVuaWVkIGluIHRoZSBzYW5kYm94Lgor
CisgICAgICAgICogV2ViUHJvY2Vzcy9jb20uYXBwbGUuV2ViUHJvY2Vzcy5zYi5pbjoKKwogMjAy
MC0wOC0yNiAgQWRpdHlhIEtlZXJ0aGkgIDxha2VlcnRoaUBhcHBsZS5jb20+CiAKICAgICAgICAg
W2lPU10gRGlzYWJsZWQgb3B0aW9ucyBpbiB0aGUgbXVsdGktc2VsZWN0IHBpY2tlciBzaG91bGQg
bm90IGJlIHNlbGVjdGFibGUKSW5kZXg6IFNvdXJjZS9XZWJLaXQvV2ViUHJvY2Vzcy9jb20uYXBw
bGUuV2ViUHJvY2Vzcy5zYi5pbgo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2ViS2l0L1dlYlByb2Nl
c3MvY29tLmFwcGxlLldlYlByb2Nlc3Muc2IuaW4JKHJldmlzaW9uIDI2NjE2NykKKysrIFNvdXJj
ZS9XZWJLaXQvV2ViUHJvY2Vzcy9jb20uYXBwbGUuV2ViUHJvY2Vzcy5zYi5pbgkod29ya2luZyBj
b3B5KQpAQCAtNzY1LDYgKzc2NSw5IEBACiAgICAgKGdsb2JhbC1uYW1lICJjb20uYXBwbGUud2lu
ZG93c2VydmVyLmFjdGl2ZSIpKQogI2VuZGlmCiAKKyhkZW55IG1hY2gtbG9va3VwICh3aXRoIG5v
LWxvZykKKyAgICAoZ2xvYmFsLW5hbWUgImNvbS5hcHBsZS5Db3JlRGlzcGxheS5Ob3RpZmljYXRp
b24pKQorCiAjaWYgX19NQUNfT1NfWF9WRVJTSU9OX01JTl9SRVFVSVJFRCA8IDExMDAwMAogOzsg
TmVlZGVkIHRvIHN1cHBvcnQgZW5jcnlwdGVkIG1lZGlhIHBsYXliYWNrIDxyZGFyOi8vcHJvYmxl
bS80MDAzODQ3OD4KIChhbGxvdyBtYWNoLWxvb2t1cAo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>407353</attachid>
            <date>2020-08-26 16:29:10 -0700</date>
            <delta_ts>2020-08-26 18:58:37 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-215869-20200826162909.patch</filename>
            <type>text/plain</type>
            <size>1513</size>
            <attacher name="Per Arne Vollan">pvollan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XZWJL
aXQvQ2hhbmdlTG9nCShyZXZpc2lvbiAyNjYxOTUpCisrKyBTb3VyY2UvV2ViS2l0L0NoYW5nZUxv
Zwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBACisyMDIwLTA4LTI2ICBQZXIgQXJuZSBW
b2xsYW4gIDxwdm9sbGFuQGFwcGxlLmNvbT4KKworICAgICAgICBbbWFjT1NdIFN0b3AgbG9nZ2lu
ZyBzYW5kYm94IHZpb2xhdGlvbnMgb2YgY29tLmFwcGxlLkNvcmVEaXNwbGF5Lk5vdGlmaWNhdGlv
bgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjE1ODY5
CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgT24gbWFj
T1MsIHN0b3AgbG9nZ2luZyBtYWNoLWxvb2t1cCBzYW5kYm94IHZpb2xhdGlvbnMgb2YgY29tLmFw
cGxlLkNvcmVEaXNwbGF5Lk5vdGlmaWNhdGlvbiBmb3IgcGVyZm9ybWFuY2UgcmVhc29ucy4KKwor
ICAgICAgICBObyBuZXcgdGVzdHMsIHNpbmNlIHRoZXJlIGlzIG5vIGNoYW5nZSBpbiBiZWhhdmlv
ci4gVGhlIHNlcnZpY2Ugd2FzIGFscmVhZHkgYmVpbmcgZGVuaWVkIGluIHRoZSBzYW5kYm94Lgor
CisgICAgICAgICogV2ViUHJvY2Vzcy9jb20uYXBwbGUuV2ViUHJvY2Vzcy5zYi5pbjoKKwogMjAy
MC0wOC0yNiAgQWRp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