I'm trying to get rid of a stray kernel extension from Corel Painter. There is a question and answer about it here. The kextunload
command from that answer worked, but I can't remove the files.
sudo rm -rf /Library/Extensions/PainterAudioDriver.kext
rm: /Library/Extensions/PainterAudioDriver.kext/Contents/_CodeSignature/CodeResources: Operation not permitted
rm: /Library/Extensions/PainterAudioDriver.kext/Contents/_CodeSignature: Operation not permitted
rm: /Library/Extensions/PainterAudioDriver.kext/Contents/MacOS/PainterAudioDriver: Operation not permitted
...
rm: /Library/Extensions/PainterAudioDriver.kext: Operation not permitted
How can it not be permitted when I'm using sudo? How do I remove them?
I guess this has something to do with it...
% ls -ld@ /Library/Extensions/PainterAudioDriver.kext
drwxr-xr-x@ 3 root wheel 96 Jan 7 2016 /Library/Extensions/PainterAudioDriver.kext
com.apple.rootless 0
com.apple.rootless
xattr, you will need to disable it to modify those files. (but this seems like an odd case because SIP shouldn't be protecting those files) – airsquared Apr 24 '20 at 01:56