Reversing libdisk, a useful IRIX library
#1
Reversing libdisk, a useful IRIX library
So I was doing research into the mount, mkfs etc. commands and when I hit ldd on them, one name kept recurring. libdisk.so. 

So from what my research has come about, libdisk is an SGI-internal library. It exposes many kernel level operations regarding mounts, filesystems/disk ops to the main userspace tools like mount/umount and mkfs/fx. 

One interesting thing. No package installs headers for libdisk. There's no documentation on libdisk I can find either. So I got together with my colleague who was responsible for helping with OpenFAM, and we decided to tackle it. 

Currently our scope of this is to expose every function that's being used, and we have multiple ways to determine this -- nm symbol tables for the lib and the commands linking against it, as well as any structs being used. 

I am not doing the actual "dirty" work, like before. I am hacking up a header and we're seeing if it actually works after we try each function. Of course, we'll need an actual command with source code to try it, so that's an eventuality once we go from here. 

http://gitea.irixce.org/Raion/libdisk-header

For your viewing benefit. If anyone wants to offer advice or ways to test these functions, by all means, but for now this is just me and my colleague hacking to figure it out.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
01-06-2022, 12:40 AM


Messages In This Thread
Reversing libdisk, a useful IRIX library - by Raion - 01-06-2022, 12:40 AM
RE: Reversing libdisk, a useful IRIX library - by weblacky - 01-06-2022, 01:16 AM
RE: Reversing libdisk, a useful IRIX library - by Raion - 01-06-2022, 01:29 AM
RE: Reversing libdisk, a useful IRIX library - by Raion - 01-07-2022, 03:00 AM
RE: Reversing libdisk, a useful IRIX library - by 02girl - 01-07-2022, 08:05 AM
RE: Reversing libdisk, a useful IRIX library - by Raion - 01-07-2022, 09:29 PM
RE: Reversing libdisk, a useful IRIX library - by Raion - 01-26-2022, 03:34 AM
RE: Reversing libdisk, a useful IRIX library - by Raion - 07-11-2022, 06:51 AM
RE: Reversing libdisk, a useful IRIX library - by Raion - 11-27-2022, 03:27 AM
RE: Reversing libdisk, a useful IRIX library - by Raion - 11-30-2022, 05:12 PM
RE: Reversing libdisk, a useful IRIX library - by Raion - 12-09-2022, 09:51 PM
RE: Reversing libdisk, a useful IRIX library - by Raion - 12-20-2022, 05:02 AM
RE: Reversing libdisk, a useful IRIX library - by Raion - 03-14-2023, 07:53 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)