W
W
wires2015-12-02 09:01:38
macOS
wires, 2015-12-02 09:01:38

Where in OS X is the attribute stored on what object was created?

In OS X, there is such a mechanism that objects store information about their creator. In the Protection and Security settings, the launch of objects from any source is set. A
a585ff1977dd488f855c2d34476d9085.png
similar mechanism exists in Windows, but it can be disabled through the registry.
This is what it looks like for an object downloaded from the Internet
3e0efee059dc48a78232b3641debee47.png
. Information is inherited hierarchically if I downloaded a dmg file and any application opened inside will inherit the downloaded url. In general, there should be some kind of pens for tuning sandbox?
Let's say I downloaded a thousand applications and do not want to reap this message. And yes, I know what I want.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2015-12-02
@wires

sandbox is out of business here: google -> osx extended attributes .
specifically, data from screenshots is stored in the com.apple.metadata:kMDItemWhereFroms attribute .

Let's say I downloaded a thousand applications and do not want to reap this message.
xattr command with -d/-c switches .

W
wires, 2015-12-02
@wires

Two files downloaded from different
URLs $ xattr -l Pangu_v1.2.1_win.zip
com.apple.quarantine: 0001;565eb0ec;Google Chrome;1D2C05B3-39E3-4F42-AEAC-20811F4D8336
$ xattr -l Pangu_v1.2_mac.zip
com.apple .quarantine: 0001;565ea71a;Google Chrome;5A62156A-9441-448E-AFC2-9E5E2E96FB60

565ea71a download date
5A62156A-9441-448E-AFC2-9E5E2E96FB60 url
Google Chrome program name
$ xattr -w com.apple.quarantine '0001;565ea71 w ; SUPER PUPER ;5A62156A-9441-448E-AFC2-9E5E2E96FB 54 ' ~/Downloads/Pangu_v1.2.dmg
Apparently com.apple.metadata:kMDItemWhereFroms is deprecated and it gets urls via com.apple.quarantin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question