Re: [gpfsug-discuss] Policy scan of symbolic links with contents?

2021-03-08 Thread Stephen Ulmer
Does that check the target of the symlink, or the path to the link itself? I think the OP was checking the target (or I misunderstood). -- Stephen Ulmer Sent from a mobile device; please excuse auto-correct silliness. > On Mar 8, 2021, at 3:34 PM, Jonathan Buzzard > wrote: > > On

Re: [gpfsug-discuss] Policy scan of symbolic links with contents?

2021-03-08 Thread Jonathan Buzzard
On 08/03/2021 20:45, Jonathan Buzzard wrote: [SNIP] So noting that you can write very SQL like statements something like the following should in theory do it RULE finddangling LIST dangle WHERE MISC_ATTRIBUTES='L' AND SUBSTR(PATH_NAME,0,4)='/fs1/' Note the above is not checked in any way

Re: [gpfsug-discuss] Policy scan of symbolic links with contents?

2021-03-08 Thread Jonathan Buzzard
On 08/03/2021 16:07, Frederick Stock wrote: CAUTION: This email originated outside the University. Check before clicking links or attachments. Presumably the only feature that would help here is if policy could determine that the end location pointed to by a symbolic link is within the current

Re: [gpfsug-discuss] Policy scan of symbolic links with contents?

2021-03-08 Thread Frederick Stock
| Spectrum Scale Development Advocacy | 720-430-8821sto...@us.ibm.com     - Original message -From: "Oesterlin, Robert" Sent by: gpfsug-discuss-boun...@spectrumscale.orgTo: gpfsug main discussion list Cc:Subject: [EXTERNAL] Re: [gpfsug-discuss] Policy scan of symbolic links with con

Re: [gpfsug-discuss] Policy scan of symbolic links with contents?

2021-03-08 Thread Oesterlin, Robert
c: "gpfsug-discuss@spectrumscale.org" Subject: [EXTERNAL] Re: [gpfsug-discuss] Policy scan of symbolic links with contents? CAUTION: This Email is from an EXTERNAL source. Ensure you trust this sender before clicking on any links or attachments. Could

Re: [gpfsug-discuss] Policy scan of symbolic links with contents?

2021-03-08 Thread Frederick Stock
quot; Sent by: gpfsug-discuss-boun...@spectrumscale.orgTo: gpfsug main discussion list Cc:Subject: [EXTERNAL] [gpfsug-discuss] Policy scan of symbolic links with contents?Date: Mon, Mar 8, 2021 10:12 AM  Looking to craft a policy scan that pulls out symbolic links to a particular destination. For instanc

[gpfsug-discuss] Policy scan of symbolic links with contents?

2021-03-08 Thread Oesterlin, Robert
Looking to craft a policy scan that pulls out symbolic links to a particular destination. For instance: file1.py -> /fs1/patha/pathb/file1.py (I want to include these) file2.py -> /fs2/patha/pathb/file2.py (exclude these) The easy way would be to pull out all sym-links and just grep for the