User is unable to use ls to view directory contents within their own Library folder

Originator:broccardo
Number:rdar://40786141 Date Originated:June 4, 2018
Status:Closed by Apple Resolved:
Product:macOS 10.14 Beta 1 Product Version:18A293u
Classification:macOS Reproducible:Always
 
User is able to traverse through and view the contents of all folders within their home folder's Library folder in the Finder but they are unable to use the CLI tool ls to view the contents of particular folders.

Steps to Reproduce:
1. In Terminal, while logged in as the user issue these commands:
a. cd  /Users/[user]/Library/
b. ls -al Safari
c. ls -al Mail

Expected Results:
In previous versions of the OS, a user would have unfettered access to all files and folders within their home folder regardless of whether or not they were using the Finder or the Terminal.

Actual Results:
In 10.14 beta 1, when a user attempts to examine the contents of selected folders within their own home folder, the OS presents the following error:
"ls: Safari: Operation not permitted" 

See the attached screenshot (1014userfolder.png) for an example.


Version/Build: 10.14 beta 1 18A293u

Comments

Apple has closed the ticket

Apple's response:

Engineering has determined that this issue behaves as intended based on the following information:

This is the intended behavior of macOS Mojave. On customer builds, any app that needs access to ~/Library/Safari or Safari’s container must be added to the blessed “Application Data” list in System Preferences > Security > Privacy.

We consider this issue closed. If you have any questions or concern regarding this issue, please update your report directly (https://bugreport.apple.com).


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!