From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BECB4C433EF for ; Tue, 17 May 2022 12:06:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231545AbiEQMGq (ORCPT ); Tue, 17 May 2022 08:06:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231470AbiEQMGp (ORCPT ); Tue, 17 May 2022 08:06:45 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A46E844746 for ; Tue, 17 May 2022 05:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652789203; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+7DWZPcCQMapjMFy8do6k9RHnhUGUYIjA+rikeV1mp4=; b=TdPAPj+36y9uCnk3vBnjY+RJHq6IJiCCizRTpRz3evcFP462ci8ea679dsJYNbLFdQGQQO 7JUqqyoVFVCcChxFhkgkm5utr/vwx3vWzLbu8IUbrCBe6OJNSkRek8Dgep5dMGE+u9zxXc 7AYNEKn+/3Ws/kT2Lj1DD9GSxdNWYIg= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-6-gxaS7829P0-E_sNZzhLB0w-1; Tue, 17 May 2022 08:06:42 -0400 X-MC-Unique: gxaS7829P0-E_sNZzhLB0w-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id ECE153C1E322; Tue, 17 May 2022 12:06:41 +0000 (UTC) Received: from localhost (unknown [10.40.194.210]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9E00440D1B98; Tue, 17 May 2022 12:06:41 +0000 (UTC) From: Petr Lautrbach To: Christian =?utf-8?Q?G=C3=B6ttsche?= , selinux@vger.kernel.org Subject: Re: [PATCH] libselinux: update man page of setfilecon(3) family about context parameter In-Reply-To: <20220505174338.24370-1-cgzones@googlemail.com> References: <20220505174338.24370-1-cgzones@googlemail.com> Date: Tue, 17 May 2022 14:06:40 +0200 Message-ID: <871qws8isv.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org Christian G=C3=B6ttsche writes: > The family of setfilecon(3) functions take the context as a read-only > `const char *` parameter. > > Signed-off-by: Christian G=C3=B6ttsche Acked-by: Petr Lautrbach Thanks. > --- > libselinux/man/man3/setfilecon.3 | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/libselinux/man/man3/setfilecon.3 b/libselinux/man/man3/setfi= lecon.3 > index 0e9a383f..6bd3e415 100644 > --- a/libselinux/man/man3/setfilecon.3 > +++ b/libselinux/man/man3/setfilecon.3 > @@ -5,17 +5,17 @@ setfilecon, fsetfilecon, lsetfilecon \- set SELinux sec= urity context of a file > .SH "SYNOPSIS" > .B #include > .sp > -.BI "int setfilecon(const char *" path ", char *" con ); > +.BI "int setfilecon(const char *" path ", const char *" con ); > .sp > -.BI "int setfilecon_raw(const char *" path ", char *" con ); > +.BI "int setfilecon_raw(const char *" path ", const char *" con ); > .sp > -.BI "int lsetfilecon(const char *" path ", char *" con ); > +.BI "int lsetfilecon(const char *" path ", const char *" con ); > .sp > -.BI "int lsetfilecon_raw(const char *" path ", char *" con ); > +.BI "int lsetfilecon_raw(const char *" path ", const char *" con ); > .sp > -.BI "int fsetfilecon(int "fd ", char *" con ); > +.BI "int fsetfilecon(int "fd ", const char *" con ); > .sp > -.BI "int fsetfilecon_raw(int "fd ", char *" con ); > +.BI "int fsetfilecon_raw(int "fd ", const char *" con ); > . > .SH "DESCRIPTION" > .BR setfilecon () > --=20 > 2.36.0