User Tools

Site Tools


docs:tips_n_tricks:max_os_x:extended_attributes.html
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


docs:tips_n_tricks:max_os_x:extended_attributes.html [07.10.2017 14:26 CEST] (current) – created peter
Line 1: Line 1:
 +====== Extendend Attributes ======
 +===== General =====
  
 +  * List them with ''ls -L -@''
 +  * Show details and change them with ''xattr''
 +
 +===== com.apple.quarantine =====
 +
 +> File Quarantine is a new feature in Leopard designed to protect users from trojan horse attacks. It allows applications which download file content from the Internet to place files in “quarantine” to indicate that the file could be from an untrustworthy source. An application quarantines a file simply by assigning values to one or more quarantine properties which preserve information about when and where the file come from.
 +>
 +> When the Launch Services API is used to open a quarantined file and the file appears to be an application, script, or other executable file type, Launch Services will display an alert to confirm the user understands the file is some kind of application.
 +>(Source: [[https://developer.apple.com/library/mac/releasenotes/Carbon/RN-LaunchServices/index.html|Apple Developer]])
 +
 +The hex number is a date which can be decoded with the //date// command:
 +
 +  ~ $ ls -l -@ Filename
 +  -rw-------@ 1 user  staff  0 Oct  7 05:18 Filename
 +          com.apple.quarantine    30 
 +  ~ $ xattr -p com.apple.quarantine Filename
 +  0000;59d84776;MySoftware.app;
 +  ~ $ date -r 0x59d84776                 
 +  Sat Oct  7 05:18:14 CEST 2017
 +  ~ $
 +
 +Credits:
 +  * [[https://apple.stackexchange.com/users/3936/user495470|user495470]] on [[https://apple.stackexchange.com/questions/104712/what-causes-os-x-to-mark-a-folder-as-quarantined|Stackexchange]] who referenced the excerpt cited above.
 +
 +{{tag>OSX "extended attributes" xattr}}
 +{{entry>OSX}}
 +{{entry>extended attributes}}
 +{{entry>xattr}}
docs/tips_n_tricks/max_os_x/extended_attributes.html.txt · Last modified: 07.10.2017 14:26 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki