Re: [PATCH 1/5] xfs_scrub: allow auxiliary pathnames for sandboxing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 25, 2023 at 06:55:02PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@xxxxxxxxxx>
> 
> In the next patch, we'll tighten up the security on the xfs_scrub
> service so that it can't escape.  However, sanboxing the service
> involves making the host filesystem as inaccessible as possible, with
> the filesystem to scrub bind mounted onto a known location within the
> sandbox.  Hence we need one path for reporting and a new -A argument to
> tell scrub what it should actually be trying to open.

This confuses me a bit.  Let me try to see if I understood it correctly:

 - currently xfs_scrub is called on the mount point, where the
   mount-point is the first non-optional argument

With this patch there is a new environment variable that tells it what
mount point to use, and only uses the one passed as the argument for
reporting messages.

If I understand this correctly I find the decision odd.  I can see
why you want to separate the two.  But I'd still expect the mount point
to operate on to be passed as the argument, with an override for the
reported messages.  And I'd expect the override passed as a normal
command line option and not an environment variable. 




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux