Agreed.

Gerald
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Gerald Lovel   |  901.276.1004
glo...@aaltsys.com |  AAltSys.com
AAltSys Technology Center
<http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=aaltsys&aq=&sll=37.0625,-95.677068&sspn=52.947994,100.898438&ie=UTF8&hq=aaltsys&hnear=&z=13&iwloc=A&cid=7533665924136652323>

On Mon, Nov 14, 2016 at 5:09 AM, Chris van Run <1629...@bugs.launchpad.net>
wrote:

> I can confirm that using 4.4.0-47.68 version has resolved the autofs
> problem.
>
> Cheers, Chris
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1628586).
> https://bugs.launchpad.net/bugs/1629204
>
> Title:
>   Autofs parameter substitution broken in kernel 4.4.0-38 and 4.4.0-40
>
> Status in linux package in Ubuntu:
>   Fix Released
> Status in linux source package in Xenial:
>   Fix Released
> Status in linux source package in Yakkety:
>   Fix Released
>
> Bug description:
>   SRU Justification
>
>   Impact: ca6fe3344554 "fs: Call d_automount with the filesystems creds"
>   causes a regression in the requester uid and gid passed to userspace
>   during automount, as the current credentials during automount are
>   those of root and not the user who requested the mount.
>
>   Fix: Use current->real_cred instead of current->cred for getting the
>   requester's uid and gid.
>
>   Regression Potential: Minimal. current->cred and current->real_cred
>   are the same except when credentials are overridden, thus
>   current->real_cred contains the same credentials that autofs had been
>   using prior to the change which overrides the credentials during
>   automount.
>
>   ---
>
>   Hello,
>
>   I have run into a bug relating autofs's parameter substitution (e.g.
>   UID, GID, etc) with kernel versions 4.4.0-38 and proposed 4.4.0-40.
>   Kernel version 4.4.0-28 does things correctly but testing intermediate
>   kernel versions is hard due to earlier bugs related with fs's.
>   Incorrect parameter substitution makes CIFS mounting with variable
>   credentials impossible.
>
>   Wat was expected:
>   $UID in autofs map are substituted by the uid of the user that starts
> the auto-mounting process.
>
>   What actually happens:
>   Root's uid (0) is substituted instead.
>
>   This ill parameter substitution likely caused by recent fixes
>   resolving permissions problems for nfs/cifs mounts and dfs referrals
>   (#1626112 and #1612135). And possibly the fix 'fs: Call d_automount
>   with the filesystems creds' but that is a wild guess.
>
>   Furthermore; playing with the force_standard_program_map_env settings
>   in autofs.conf and prefixing variables with 'AUTOFS_' does not solve
>   anything.
>
>   Yours kindly,
>
>   Chris
>
>   ---- Additional info ----
>
>     lsb_release -rd
>   Description:    Ubuntu 16.04.1 LTS
>   Release:        16.04
>   ---
>   ApportVersion: 2.20.1-0ubuntu2.1
>   Architecture: amd64
>   AudioDevicesInUse:
>    USER        PID ACCESS COMMAND
>    /dev/snd/controlC0:  run00001   3015 F.... pulseaudio
>   DistroRelease: Ubuntu 16.04
>   HibernationDevice: RESUME=UUID=f2a2c5c4-2f41-482a-80b4-968a87131214
>   InstallationDate: Installed on 2016-09-19 (10 days ago)
>   InstallationMedia: Kubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64
> (20160719)
>   IwConfig:
>    enp0s8    no wireless extensions.
>
>    enp0s3    no wireless extensions.
>
>    lo        no wireless extensions.
>   Lsusb:
>    Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
>    Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
>   MachineType: innotek GmbH VirtualBox
>   Package: linux (not installed)
>   ProcEnviron:
>    LANGUAGE=
>    TERM=xterm
>    PATH=(custom, no user)
>    LANG=en_US.UTF-8
>    SHELL=/bin/bash
>   ProcFB: 0 vboxdrmfb
>   ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-40-generic
> root=/dev/sda1 ro quiet splash
>   ProcVersionSignature: Ubuntu 4.4.0-40.60-generic 4.4.21
>   PulseList:
>    Error: command ['pacmd', 'list'] failed with exit code 1: Home
> directory not accessible: Permission denied
>    No PulseAudio daemon running, or not running as session daemon.
>   RelatedPackageVersions:
>    linux-restricted-modules-4.4.0-40-generic N/A
>    linux-backports-modules-4.4.0-40-generic  N/A
>    linux-firmware                            1.157.3
>   RfKill:
>
>   Tags:  xenial
>   Uname: Linux 4.4.0-40-generic x86_64
>   UpgradeStatus: No upgrade log present (probably fresh install)
>   UserGroups:
>
>   _MarkForUpload: True
>   dmi.bios.date: 12/01/2006
>   dmi.bios.vendor: innotek GmbH
>   dmi.bios.version: VirtualBox
>   dmi.board.name: VirtualBox
>   dmi.board.vendor: Oracle Corporation
>   dmi.board.version: 1.2
>   dmi.chassis.type: 1
>   dmi.chassis.vendor: Oracle Corporation
>   dmi.modalias: dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:
> svninnotekGmbH:pnVirtualBox:pvr1.2:rvnOracleCorporation:
> rnVirtualBox:rvr1.2:cvnOracleCorporation:ct1:cvr:
>   dmi.product.name: VirtualBox
>   dmi.product.version: 1.2
>   dmi.sys.vendor: innotek GmbH
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/
> 1629204/+subscriptions
>

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1629204

Title:
  Autofs parameter substitution broken in kernel 4.4.0-38 and 4.4.0-40

Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Xenial:
  Fix Released
Status in linux source package in Yakkety:
  Fix Released

Bug description:
  SRU Justification

  Impact: ca6fe3344554 "fs: Call d_automount with the filesystems creds"
  causes a regression in the requester uid and gid passed to userspace
  during automount, as the current credentials during automount are
  those of root and not the user who requested the mount.

  Fix: Use current->real_cred instead of current->cred for getting the
  requester's uid and gid.

  Regression Potential: Minimal. current->cred and current->real_cred
  are the same except when credentials are overridden, thus
  current->real_cred contains the same credentials that autofs had been
  using prior to the change which overrides the credentials during
  automount.

  ---

  Hello,

  I have run into a bug relating autofs's parameter substitution (e.g.
  UID, GID, etc) with kernel versions 4.4.0-38 and proposed 4.4.0-40.
  Kernel version 4.4.0-28 does things correctly but testing intermediate
  kernel versions is hard due to earlier bugs related with fs's.
  Incorrect parameter substitution makes CIFS mounting with variable
  credentials impossible.

  Wat was expected:
  $UID in autofs map are substituted by the uid of the user that starts the 
auto-mounting process.

  What actually happens:
  Root's uid (0) is substituted instead.

  This ill parameter substitution likely caused by recent fixes
  resolving permissions problems for nfs/cifs mounts and dfs referrals
  (#1626112 and #1612135). And possibly the fix 'fs: Call d_automount
  with the filesystems creds' but that is a wild guess.

  Furthermore; playing with the force_standard_program_map_env settings
  in autofs.conf and prefixing variables with 'AUTOFS_' does not solve
  anything.

  Yours kindly,

  Chris

  ---- Additional info ----

    lsb_release -rd
  Description:    Ubuntu 16.04.1 LTS
  Release:        16.04
  ---
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  run00001   3015 F.... pulseaudio
  DistroRelease: Ubuntu 16.04
  HibernationDevice: RESUME=UUID=f2a2c5c4-2f41-482a-80b4-968a87131214
  InstallationDate: Installed on 2016-09-19 (10 days ago)
  InstallationMedia: Kubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 
(20160719)
  IwConfig:
   enp0s8    no wireless extensions.

   enp0s3    no wireless extensions.

   lo        no wireless extensions.
  Lsusb:
   Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
   Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: innotek GmbH VirtualBox
  Package: linux (not installed)
  ProcEnviron:
   LANGUAGE=
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 vboxdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-40-generic root=/dev/sda1 
ro quiet splash
  ProcVersionSignature: Ubuntu 4.4.0-40.60-generic 4.4.21
  PulseList:
   Error: command ['pacmd', 'list'] failed with exit code 1: Home directory not 
accessible: Permission denied
   No PulseAudio daemon running, or not running as session daemon.
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-40-generic N/A
   linux-backports-modules-4.4.0-40-generic  N/A
   linux-firmware                            1.157.3
  RfKill:

  Tags:  xenial
  Uname: Linux 4.4.0-40-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:

  _MarkForUpload: True
  dmi.bios.date: 12/01/2006
  dmi.bios.vendor: innotek GmbH
  dmi.bios.version: VirtualBox
  dmi.board.name: VirtualBox
  dmi.board.vendor: Oracle Corporation
  dmi.board.version: 1.2
  dmi.chassis.type: 1
  dmi.chassis.vendor: Oracle Corporation
  dmi.modalias: 
dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:svninnotekGmbH:pnVirtualBox:pvr1.2:rvnOracleCorporation:rnVirtualBox:rvr1.2:cvnOracleCorporation:ct1:cvr:
  dmi.product.name: VirtualBox
  dmi.product.version: 1.2
  dmi.sys.vendor: innotek GmbH

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1629204/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to