From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FBFD19F461 for ; Wed, 8 Jan 2025 03:00:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736305205; cv=none; b=gUexmr6MF0iH9S8Dam8dkSWIjvV+eNiBvcsqOlbkbbdT1cMuQQ2IPNbCtJrY6qc1EdIOKY4ZM7EFU4ZNHZokDzvi7U0PCK13C2mZtDmgkUAmXM0eznqBo4c10Um1TcMiW59TrTZHkAeY4gyoO/ckXtD28NO7vT2oV+OZ1NFk7TU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736305205; c=relaxed/simple; bh=69dz34IdLIqLQT3UgEpRCau5EC1HjbOWvj4mF7yxFV4=; h=Date:Message-ID:MIME-Version:Content-Type:From:To:Cc:Subject: References:In-Reply-To; b=fdYhiKBJSB/ZElOiMk0BSFgRNY5zvuqQla+w7Z4Yk38sQmcycdcJhK+zaOCpaa9IoYtmOi6tKQvJEYpfmGqZEE0+DYI34MmXzu6EXxyo+Tx3AbujJ3bpu+iPk6ZgSH9hPWG3IeA9lSDIX/yXCwX+/k0EWci43gTsNG6HfWFzQP0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com; spf=pass smtp.mailfrom=paul-moore.com; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b=cZG+qAEg; arc=none smtp.client-ip=209.85.222.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b="cZG+qAEg" Received: by mail-qk1-f180.google.com with SMTP id af79cd13be357-7b6fc5bf609so1260481685a.1 for ; Tue, 07 Jan 2025 19:00:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1736305202; x=1736910002; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :mime-version:message-id:date:from:to:cc:subject:date:message-id :reply-to; bh=NvMVeu3O/Rrbai9L7v0w6uGtmvETU8SXM9vFjK6RCPw=; b=cZG+qAEgrfqQmjcuvySiv3Irf11CFYhe4TirUz4p6gQ6nl0yxJhbrwOsMqsvkDMTw4 /xRK45rAQL9mYCQNrtVdLA222ZzPV6G8va7Ep3RVChStCTta9cr0GiwNGcpzKCN75zg3 hJVpg6U8ZzL3aIJX/YLpdOI/Gl375kT/xlZoVeFg+FI8CSO9tt+wRGXpSWAMgwPJQYfN ZqHtWVfZxbb4joLOQW42mIHhHeTVbO/yOOtBwuP8n6l2A9RXwtluOZmoAVYEsdx4rn7c oWSZnobUKMYqhr2lnHIoiunjvJSoI/wM1b+nbmCAUTnqolTDzIMS4bw7hbUagky+r8V6 ZVtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736305202; x=1736910002; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :mime-version:message-id:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=NvMVeu3O/Rrbai9L7v0w6uGtmvETU8SXM9vFjK6RCPw=; b=kVlDfGRN0L/8iP8CIa8TOtfxwWOixdzlIWnEzRWCvw2UA0LXbEjEIT3VOJNMRJJJRE 3D70GqzYUvhQl97gh061YT2zmS4GKDA1AXOvUE8raGEPM5iryBTFWboGyciAPoHz5AJK jW5GuViPQc0xyuIt8yXRnM5KUkQ8MXj9aqXTqXqZejGyLoknQGANB6/HPlkAdU/dBrVt aKZRVavutn41h/5J/ouQBwX8OtRXIP6v7g8iT1cNY0yd/HjnK1l7PieUDX8tDg2DBZx9 bBFwMjO0VRsPMs0k/slhqusNpUR5m+dPDmgp43sdkDPP4CkbLzQ20qd1x9R7gMnvhv9+ JP6g== X-Forwarded-Encrypted: i=1; AJvYcCUX4AFNR3MDB9Zfv9UyRuHlH7FFrpnZBtAYZFl+sunfwZGNaS56anlPtItibWzVwrQYiFT5rn2sYJ9TTic=@vger.kernel.org X-Gm-Message-State: AOJu0Yy2kXqI8rseqFr0igcECoRz0Eaq90qbQCCMZbR+SQANURZRgfGC iAZw+4TRXesEqU9f+G0xqxmCCtTxneHsyg1PT5jgr9mXzWiHlyIMwlNZiqOeKkHpLFTPcs9Q9w0 = X-Gm-Gg: ASbGncuBGKbwLRltq+PBLmODxjcqEH7BLJYHZxwKoZurr1RpuFqYB0LiznxkvgMzV8w ajZBMwCVl7kx8fHuARn88GzJFWahcdNJGxK5RJS/bnzk76TscqULqNAxL8aIfb6Iy6HKvFNaW/3 CTOQtp9e7FUfIYswdijo9m2HOX/ijkW133NAaJrqL6TZbEcAoN9Bghzc0zxktyiwiCJ91VUVVhj 5gaVtiIBSV2K7HNB0qcxf/sStnJtKe65U0PscvcSaRrPjbGunk= X-Google-Smtp-Source: AGHT+IE3tRjGPVkRuvsNe3q0WL+6uyZrJjkZzTaKRe75QWatS+285NESIcw8YdF9xcgdUJvGdfPLoQ== X-Received: by 2002:a05:620a:298f:b0:7b6:d88e:f187 with SMTP id af79cd13be357-7bcd978938bmr158285385a.35.1736305202282; Tue, 07 Jan 2025 19:00:02 -0800 (PST) Received: from localhost ([70.22.175.108]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-46a3eb19684sm191470191cf.58.2025.01.07.19.00.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2025 19:00:01 -0800 (PST) Date: Tue, 07 Jan 2025 22:00:01 -0500 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailer: pstg-pwork:20250107_1610/pstg-lib:20250107_1603/pstg-pwork:20250107_1610 From: Paul Moore To: =?UTF-8?q?Christian=20G=C3=B6ttsche?= , selinux@vger.kernel.org Cc: =?UTF-8?q?Christian=20G=C3=B6ttsche?= , Stephen Smalley , Ondrej Mosnacek , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , =?UTF-8?q?Thi=C3=A9baud=20Weksteen?= , =?UTF-8?q?Bram=20Bonn=C3=A9?= , Masahiro Yamada , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Eric Suen , Canfeng Guo Subject: Re: [PATCH RFC v2 7/22] selinux: use known type instead of void pointer References: <20241216164055.96267-7-cgoettsche@seltendoof.de> In-Reply-To: <20241216164055.96267-7-cgoettsche@seltendoof.de> On Dec 16, 2024 =?UTF-8?q?Christian=20G=C3=B6ttsche?= wrote: > > Improve type safety and readability by using the known type. > > Signed-off-by: Christian Göttsche > --- > v2: > - move one little diff from subsequent patch to this one > - reorder struct definition in policydb.h as suggested by Daniel > --- > security/selinux/ss/avtab.c | 8 +-- > security/selinux/ss/avtab.h | 9 +-- > security/selinux/ss/conditional.c | 12 ++-- > security/selinux/ss/conditional.h | 6 +- > security/selinux/ss/ebitmap.c | 4 +- > security/selinux/ss/ebitmap.h | 5 +- > security/selinux/ss/policydb.c | 91 ++++++++++++++++--------------- > security/selinux/ss/policydb.h | 16 +++--- > 8 files changed, 77 insertions(+), 74 deletions(-) Merged into selinux/dev, thanks. -- paul-moore.com