MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "T-72",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "97": {
                "pageid": 97,
                "ns": 0,
                "title": "SELinux",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "Q: I have some avc denials that I would like to allow, how do I do this?\n\nA: \t\n\nIf you have specific AVC messages you can use audit2allow to generate a Type Enforcement file that is ready to load as a policy module.\n\n  audit2allow -M local < /tmp/avcs\n\nThis creates a local.pp which you can then load into the kernel using semodule -i local.pp. You can also edit the local.te to make additional customizations. To create a module allowing all the denials since the last reboot that you can then customize, execute the following:\n\n  audit2allow -m local -l -i /var/log/messages > local.te\n\nNote that the above assumes you are not using the audit daemon. If you were using the audit daemon, then you should use /var/log/audit/audit.log instead of /var/log/messages as your log file. This generates a local.te file, that looks similar to the following:\n\n  module local 1.0;\n  \n  require {\n        class file { append execute execute_no_trans getattr ioctl read write };\n        type httpd_t;\n        type httpd_w3c_script_exec_t;\n  };\n  \n  allow httpd_t httpd_w3c_script_exec_t:file { execute execute_no_trans getattr ioctl read };\n  \nYou can hand edit this file, removing allow statements that you don't want to allow, and then recompile and reload it using\n\n* '''checkmodule -M -m -o local.mod local.te''' to compile the te file. Note that checkmodule is part of the checkpolicy rpm, so you need to have it installed.\n* '''semodule_package -o local.pp -m local.mod''' to create a policy package.\n* '''semodule -i local.pp''' to add it to the current machine's running policy. This installs a new module called local with these rules into the module store.\n\n{| border=\"1\"\n|[Note] Important\n\nIn order to load this newly created policy package into the kernel, you are required to execute semodule -i local.pp\n\nNote that if you later install another module called local, it will replace this module. If you want to keep these rules around, then you either need to append future customizations to this local.te, or give future customizations a different name.\n|}"
                    }
                ]
            },
            "96": {
                "pageid": 96,
                "ns": 0,
                "title": "Samba",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "Samba is a file/printer sharing system. For more infomation see http://www.samba.org/\n\nIn configuring samba in [[Fedora Core]] 4, there are problem that some directory cannot be mapped or viewed. The problem may be due to [[SELinux]] installed. For more detail, refer to \"man samba_selinx\".\n\nSamb4 Upgrade\n\n  ./configure --enable-debug --enable-selftest --prefix=/opt/samba4\n  make\n  make install\n  samba-tool dbcheck\n  service samba4 start\n  samba -V\n  smbclient -V\n  smbclient -L localhost -U%\n  smbclient //localhost/netlogon -UAdministrator -c 'ls'\n\n----\nGoto [[Linux]]"
                    }
                ]
            }
        }
    }
}