sys-apps/file-5.11 installs the man page for magic as magic(4) instead of magic(5). As this page describes a configuration file, it should be installed in section 5 (as a comment in the file itself indicates). Upstream allows us to control this via a --enable-fsect-man5 flag to configure.
i think section 4 is appropriate. it's describing the magic file format -- that's not really a "configuration file", it's a "special database type file".
What it isn't is a "device node", which is what section 4 is for. Some excepts from intro(4) and intro(5): intro(4): DESCRIPTION Section 4 of the manual describes special files (devices). FILES /dev/* -- device files intro(5): DESCRIPTION Section 5 of the manual describes various file formats and protocols, and the corresponding C structures, if any. To me, this reads as magic(?), describing a file format, would be in section 5, not section 4.
(In reply to Jonathan Callen from comment #2) that depends on the system. section 4 is not well standardized. https://docs.oracle.com/cd/E53394_01/html/E54775/index.html
`man man` also says: 4 Special files (usually found in /dev) so while section 4 isn't wrong for this, other distros have moved to section 5, and it's also not wrong for it. so i've added the configure flag upstream provides to the 5.27 version. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44b276923b08eaa58ae67154ceb22654ab4e16a7