summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuiwen He <hehuiwen@kylinos.cn>2026-01-21 14:49:09 +0300
committerSteve French <stfrench@microsoft.com>2026-02-09 06:24:42 +0300
commit0bf7e53fec6118552ab3fb43dfc76b0e65be85fe (patch)
tree3e17b2c7e840b9f760a8eba1f55e650a6815eecc
parentded739a08228385f48cbbffdfc965888a608c63e (diff)
downloadlinux-0bf7e53fec6118552ab3fb43dfc76b0e65be85fe.tar.xz
smb/client: add NT_STATUS_NO_USER_KEYS
See MS-ERREf 2.3.1 STATUS_NO_USER_KEYS. Signed-off-by: Huiwen He <hehuiwen@kylinos.cn> Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn> Signed-off-by: Steve French <stfrench@microsoft.com>
-rw-r--r--fs/smb/client/nterr.c1
-rw-r--r--fs/smb/client/nterr.h1
-rw-r--r--fs/smb/client/smb1maperror.c2
3 files changed, 3 insertions, 1 deletions
diff --git a/fs/smb/client/nterr.c b/fs/smb/client/nterr.c
index 9f0a3283edc0..256f14209f56 100644
--- a/fs/smb/client/nterr.c
+++ b/fs/smb/client/nterr.c
@@ -689,6 +689,7 @@ const struct nt_err_code_struct nt_errs[] = {
{"NT_STATUS_NO_RECOVERY_POLICY", NT_STATUS_NO_RECOVERY_POLICY},
{"NT_STATUS_NO_EFS", NT_STATUS_NO_EFS},
{"NT_STATUS_WRONG_EFS", NT_STATUS_WRONG_EFS},
+ {"NT_STATUS_NO_USER_KEYS", NT_STATUS_NO_USER_KEYS},
{"NT_STATUS_NETWORK_SESSION_EXPIRED", NT_STATUS_NETWORK_SESSION_EXPIRED},
{"NT_STATUS_NO_MORE_ENTRIES", NT_STATUS_NO_MORE_ENTRIES},
{"NT_STATUS_MORE_ENTRIES", NT_STATUS_MORE_ENTRIES},
diff --git a/fs/smb/client/nterr.h b/fs/smb/client/nterr.h
index 72fb68a13c49..b34e522e6f87 100644
--- a/fs/smb/client/nterr.h
+++ b/fs/smb/client/nterr.h
@@ -559,6 +559,7 @@ extern const struct nt_err_code_struct nt_errs[];
#define NT_STATUS_NO_RECOVERY_POLICY (0xC0000000 | 0x028d)
#define NT_STATUS_NO_EFS (0xC0000000 | 0x028e)
#define NT_STATUS_WRONG_EFS (0xC0000000 | 0x028f)
+#define NT_STATUS_NO_USER_KEYS (0xC0000000 | 0x0290)
#define NT_STATUS_NETWORK_SESSION_EXPIRED (0xC0000000 | 0x035c)
#define NT_STATUS_NO_SUCH_JOB (0xC0000000 | 0xEDE) /* scheduler */
#define NT_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP (0xC0000000 | 0x5D0000)
diff --git a/fs/smb/client/smb1maperror.c b/fs/smb/client/smb1maperror.c
index 7af766b81eaf..0e1c8763afff 100644
--- a/fs/smb/client/smb1maperror.c
+++ b/fs/smb/client/smb1maperror.c
@@ -666,7 +666,7 @@ static const struct {
ERRDOS, ERRnoaccess, NT_STATUS_NO_RECOVERY_POLICY}, {
ERRDOS, ERRnoaccess, NT_STATUS_NO_EFS}, {
ERRDOS, ERRnoaccess, NT_STATUS_WRONG_EFS}, {
- ERRDOS, ERRnoaccess, 0xc0000290}, {
+ ERRDOS, ERRnoaccess, NT_STATUS_NO_USER_KEYS}, {
ERRDOS, ERRbadfunc, 0xc000029c}, {
ERRDOS, ERRsymlink, NT_STATUS_STOPPED_ON_SYMLINK}, {
ERRDOS, ERRunknownlevel, NT_STATUS_OS2_INVALID_LEVEL}, {