OS-4149: lxbrand setxattr(2), lsetxattr(2) and fsetxattr(2) should fail ENOTSUP

Details

Issue Type:Bug
Priority:4 - Normal
Status:Resolved
Created at:2015-04-02T22:35:54.000Z
Updated at:2018-12-21T21:03:34.452Z

People

Created by:Former user
Reported by:Former user
Assigned to:Former user

Resolution

Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2015-04-03T06:57:40.000Z)

Fix Versions

2015-04-16 Mars Climate Orbiter (Release Date: 2015-04-16)

Labels

lxbrand

Description

At the moment, we provide no implementation of the LX setxattr(2), lsetxattr(2) and fsetxattr(2) system calls. This means the calls, if attempted, fail with ENOSYS.

This induces a hard failure of rpm -i when it attempting to set various extended attributes. If we returned EOPNOTSUP instead, as we do for the getxattr and listxattr families, rpm would interpret the failure as one of the specific file system type and drive on.

The lx_attr() routine in the kernel indiscriminately fails with ENOTSUP, so we should use that for now.

Comments

Comment by Former user
Created at 2015-04-03T06:54:48.000Z

illumos-joyent commit ad3e048 (branch master, by Joshua M. Clulow)

OS-4149 lxbrand setxattr(2), lsetxattr(2) and fsetxattr(2) should fail ENOTSUP