Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-17569

move HSM capabilities to CAP_SYS_RESOURCE

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

      Most of the HSM, quota, and remote directory operations are checking CAP_SYS_ADMIN, which is a grab-bag of different administrative capabilities. It would be more useful and secure to use CAP_SYS_RESOURCE to control access to this functionality, since these are directly related to managing storage capacity and allocation.

      /* Override resource limits. Set resource limits. */
      /* Override quota limits. */
      /* Override reserved space on ext2 filesystem */
      /* Modify data journaling mode on ext3 filesystem (uses journaling
         resources) */
      :
      :
      #define CAP_SYS_RESOURCE     24
      

            hongchao.zhang Hongchao Zhang
            adilger Andreas Dilger
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: