1# File Management Subsystem Changelog 2 3## cl.filemanagement.1 chmod, fchmod, chown, fchown, and lchown Function Unavailable 4 5**Access Level** 6 7Public 8 9**Change Impact** 10 11This change is a non-compatible change. For security purposes, the APIs for modifying the file permissions and owner are no longer available. 12 13| Module | Method/Attribute/Enum/Constant | Change Type| 14| ------------------------- | ------------------------------------------------------------ | -------- | 15| @ohos.fileio | **function** chmod(path: string, mode: number): Promise<void> | Function unavailable | 16| @ohos.fileio | **function** chmod(path: string, mode: number, callback: AsyncCallback<void>): void | Function unavailable | 17| @ohos.fileio | **function** chmodSync(path: string, mode: number): void | Function unavailable | 18| @ohos.fileio | **function** fchmod(fd: number, mode: number): Promise<void> | Function unavailable | 19| @ohos.fileio | **function** fchmod(fd: number, mode: number, callback: AsyncCallback<void>): void | Function unavailable | 20| @ohos.fileio | **function** fchmodSync(fd: number, mode: number): void | Function unavailable | 21| @ohos.fileio | **function** chown(path: string, uid: number, gid: number): Promise<void> | Function unavailable | 22| @ohos.fileio | **function** chown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void | Function unavailable | 23| @ohos.fileio | **function** chownSync(path: string, uid: number, gid: number): void | Function unavailable | 24| @ohos.fileio | **function** fchown(fd: number, uid: number, gid: number): Promise<void> | Function unavailable | 25| @ohos.fileio | **function** fchown(fd: number, uid: number, gid: number, callback: AsyncCallback<void>): void | Function unavailable | 26| @ohos.fileio | **function** fchownSync(fd: number, uid: number, gid: number): void | Function unavailable | 27| @ohos.fileio | **function** lchown(path: string, uid: number, gid: number): Promise<void> | Function unavailable | 28| @ohos.fileio | **function** lchown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void | Function unavailable | 29| @ohos.fileio | **function** lchownSync(path: string, uid: number, gid: number): void | Function unavailable | 30 31**Change Since** 32 33OpenHarmony SDK 4.1.5.2 34 35**Key API/Component Changes** 36 37After the change, calling the preceding APIs returns void, without implementing the original functionalities. 38 39**Adaptation Guide** 40 41For security purposes, the APIs for modifying the file permissions and owner are no longer available. Delete the related APIs in a timely manner. 42 43## cl.filemanagement.2 fileio.symlink and fs.symlink Function Unavailable 44 45**Access Level** 46 47Public 48 49**Change Impact** 50 51This change is a non-compatible change. For security purposes, the following APIs do not provide original functionalities. 52 53| Module | Method/Attribute/Enum/Constant | Change Type| 54| ------------------------- | ------------------------------------------------------------ | -------- | 55| @ohos.fileio | **function** symlink(target: string, srcPath: string): Promise<void> | Function unavailable | 56| @ohos.fileio | **function** symlink(target: string, srcPath: string, callback: AsyncCallback<void>): void | Function unavailable | 57| @ohos.fileio | **function** symlinkSync(target: string, srcPath: string): void | Function unavailable | 58| @ohos.file.fs | **function** symlink(target: string, srcPath: string): Promise<void> | Function unavailable | 59| @ohos.file.fs | **function** symlink(target: string, srcPath: string, callback: AsyncCallback<void>): void | Function unavailable | 60| @ohos.file.fs | **function** symlinkSync(target: string, srcPath: string): void | Function unavailable | 61 62**Change Since** 63 64OpenHarmony SDK 4.1.5.2 65 66**Key API/Component Changes** 67 68After the change, error code 13900012 (Permission denied) will be returned when these APIs are called. 69 70**Adaptation Guide** 71 72The system does not provide the capability of creating soft links. Delete the related APIs or add exception handling in a timely manner. 73