Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LaunchDaemon - How to create a plist.

First of all guys... Fantastic product ;-)

I'm trying to make a plist LaunchDaemon using the sweep command line.

Although the LaunchDaemon executes, the Logs show this entry,

Command line qualifiers are: -exclude 

I'm not sure if the directories using the -exclude option are actually excluded.

The ProgramArguments are as follows:

Item 1 /usr/bin/sweep

Item 2 /

Item 3 -exclude

Item 4 /dev

Item 5 /net

Item 6 /tmp

Item 7 /Volumes

According to the plist documentation, this is how it is supposed to be coded. Please

can you confirm whether the directories following the -exclude will be excluded and

achieve the desired objective.

A.

:1005543


This thread was automatically locked due to age.
Parents
  • Have you attempted running that command from the terminal to verify?

     /usr/bin/sweep / -exclude /dev /net /tmp /Volumes

    You are correct that --skip-special will not ignore all of those; it just ignores the special BSD paths.  Other relevant extended flags include:  --stay-on-machine will avoid remote mount points, and --stay-on-filesystem will provide the same result as excluding /Volumes.  As you can see from running sweep -h, --follow-symlinks, --stay-on-machine, --skip-special, --backtrack-protection and --preserve-backtrack are all enabled by default; the others are not.

    Please also take note of order of operations for command-line flags; -include and -exclude should be at the end; the rest can be anywhere with the last one listed taking precedence.

    :1005553
Reply
  • Have you attempted running that command from the terminal to verify?

     /usr/bin/sweep / -exclude /dev /net /tmp /Volumes

    You are correct that --skip-special will not ignore all of those; it just ignores the special BSD paths.  Other relevant extended flags include:  --stay-on-machine will avoid remote mount points, and --stay-on-filesystem will provide the same result as excluding /Volumes.  As you can see from running sweep -h, --follow-symlinks, --stay-on-machine, --skip-special, --backtrack-protection and --preserve-backtrack are all enabled by default; the others are not.

    Please also take note of order of operations for command-line flags; -include and -exclude should be at the end; the rest can be anywhere with the last one listed taking precedence.

    :1005553
Children
No Data