Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-32621

[10.0-beta] exportfs: The fs type cgroup2 (/sys/fs/cgroup) can be exported via NFS now

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-10.0.beta
    • nfs-utils
    • None
    • rhel-sst-filesystems
    • ssg_filesystems_storage_and_HA
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Previously when trying to export /sys/fs/cgroup/ (cgroup2) it gets failed. But now it can success.

      I'm not sure if this is a real problem but at lease it's a behavior change.

      Please provide the package NVR for which bug is seen:

      nfs-utils-2.6.4-0.rc4.el10.x86_64

      How reproducible:

      always

      Steps to reproduce

      1. exportfs -i *:/sys/fs/cgroup/
      2.  
      3.  

      Expected results

      Previously in rhel9

      [root@rhel-9-latest ~]# grep cgroup /proc/mounts
      cgroup2 /sys/fs/cgroup cgroup2 rw,seclabel,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
      [root@rhel-9-latest ~]# systemctl start nfs-server
      [root@rhel-9-latest ~]# exportfs -ua
      [root@rhel-9-latest ~]# exportfs -i *:/sys/fs/cgroup/
      exportfs: /sys/fs/cgroup/ requires fsid= for NFS export
      [root@rhel-9-latest ~]# echo $?
      1
      [root@rhel-9-latest ~]# uname -r
      5.14.0-437.el9.x86_64
      [root@rhel-9-latest ~]# rpm -q nfs-utils
      nfs-utils-2.5.4-25.el9.x86_64
      [root@rhel-9-latest ~]#

      Actual results

      Now in the 10.0

      [root@kvm-02-guest27 ~]# grep cgroup /proc/mounts
      cgroup2 /sys/fs/cgroup cgroup2 rw,seclabel,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
      [root@kvm-02-guest27 ~]# exportfs -ua
      [root@kvm-02-guest27 ~]# exportfs -i *:/sys/fs/cgroup/
      [root@kvm-02-guest27 ~]# echo $?
      0
      [root@kvm-02-guest27 ~]# uname -r
      6.8.0-1.el10.x86_64
      [root@kvm-02-guest27 ~]# rpm -q nfs-utils
      nfs-utils-2.6.4-0.rc4.el10.x86_64
      [root@kvm-02-guest27 ~]#

              stevedatrhn Steve Dickson
              rhn-support-yoyang Yongcheng Yang
              Steve Dickson Steve Dickson
              Yongcheng Yang Yongcheng Yang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: