<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15067</bug_id>
          
          <creation_ts>2023-03-14 09:39:18 +0000</creation_ts>
          <short_desc>System groups like sgx, wheel, renderer etc. which are not in any recipe are not being set by useradd-staticids bbclass</short_desc>
          <delta_ts>2023-07-27 07:15:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>oe-core other</component>
          <version>4.0.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>4.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Piotr Łobacz">p.lobacz</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>louis.rannou</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>95127</commentid>
    <comment_count>0</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-03-14 09:39:18 +0000</bug_when>
    <thetext>Like in subject the system groups which are not set in any recipe with GROUPADD_PARAM but are being added by the system, are not being set to the ids given in files/group.

A quick workaround is setting these groups with own recipe in GROUPADD_PARAM variable e.g. GROUPADD_PARAM:${PN} = &quot;--system sgx; --system render; --system wheel&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95130</commentid>
    <comment_count>1</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-03-14 11:29:23 +0000</bug_when>
    <thetext>Additionally I have found this patch https://lists.openembedded.org/g/openembedded-core/message/178290?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Acreated%2C0%2Csystemd%2C20%2C2%2C0%2C97508370

so sgx is being added by udev... I need to find where is wheel as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95162</commentid>
    <comment_count>2</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-03-17 08:56:36 +0000</bug_when>
    <thetext>OK according to mine investigation it is libpam responsible for adding wheel group to /etc/group so i would say that we should also add inside this recipe a GROUPADD_PARAM for the wheel group inside this recipe what do you think?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95468</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-04-27 14:50:16 +0000</bug_when>
    <thetext>sgx was addressed with https://git.yoctoproject.org/poky/commit/?id=72201b63f63e06005038550bc957aef98756c998
were there any others that need fixing?
wheel is added from base-passwd?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95473</commentid>
    <comment_count>4</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-04-28 07:42:35 +0000</bug_when>
    <thetext>Yeah, I have found that sgx is present with that fix. Richard From what I have seen only the wheel was missing for me...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95499</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-05-04 14:49:31 +0000</bug_when>
    <thetext>Piotr, we don&apos;t have anyone to work on this at the moment. - YP Triage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95782</commentid>
    <comment_count>6</comment_count>
    <who name="Louis Rannou">louis.rannou</who>
    <bug_when>2023-06-22 07:20:21 +0000</bug_when>
    <thetext>Hello ! In a recent patch (that requires a v2), I have suggested to add the wheel group in the base-passwd

https://lore.kernel.org/all/20230618093724c7508d8b@mail.local/

The wheel group can be used by pam, systemd and curl. I don&apos;t think it should be in libpam as it&apos;s only required when you use the pam_wheel module.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96086</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-07-26 21:22:03 +0000</bug_when>
    <thetext>Bulk move of 64 bugs to 4.3 M3 after a quick review.
If a bug is actually fixed, please add a commit link and resolve it.
-- Randy for YP bug team.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96114</commentid>
    <comment_count>8</comment_count>
    <who name="Louis Rannou">louis.rannou</who>
    <bug_when>2023-07-27 07:15:27 +0000</bug_when>
    <thetext>commit 5eb501113730ec1040a548a31855acf568bea702
Author: Louis Rannou &lt;lrannou@baylibre.com&gt;
Date:   Thu Jun 15 13:43:55 2023 +0200

    base-passwd: add the wheel group
    
    The wheel group is not declared while it can be used to access the systemd
    journal and to configure printers in CUPS. It can also be used for su and sudo
    permissions.
    
    So far it was created later in the rootfs postcommand systemd_create_users.
    
    (From OE-Core rev: bebe52ae9576393ebb9d7405fc77fba21e84ba5b)
    
    Signed-off-by: Louis Rannou &lt;lrannou@baylibre.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>