From: dongshengyuan <545258830@qq.com> Date: Fri, 17 Jul 2026 10:20:18 +0000 (+0800) Subject: lsipc: report shared memory creator GID correctly X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=929fcc95eaa0cbaa31f2532607196d05aab9e7ac;p=thirdparty%2Futil-linux.git lsipc: report shared memory creator GID correctly Change: Use shm_perm.cgid for the shared memory CGID column. Keep CGID consistent with CGROUP and other IPC types. Before: lsipc --shmems --creator printed CUID as CGID. The error was visible when creator UID and GID differed. Follow: d8461c4e4d8046fb8bd1da8c57383854159d48d1 --- diff --git a/sys-utils/lsipc.c b/sys-utils/lsipc.c index a555edf7c..7862b3398 100644 --- a/sys-utils/lsipc.c +++ b/sys-utils/lsipc.c @@ -1200,7 +1200,7 @@ static void do_shm(int id, struct lsipc_control *ctl, struct libscols_table *tb) rc = scols_line_refer_data(ln, n, arg); break; case COL_CGID: - rc = scols_line_sprintf(ln, n, "%u", p->shm_perm.cuid); + rc = scols_line_sprintf(ln, n, "%u", p->shm_perm.cgid); break; case COL_CGROUP: arg = get_groupname(&gr, p->shm_perm.cgid);