According to this explanation, "expression of disaffection" includes disloyalty and all feelings of hate. It also says comments that express strong disapproval of "the measures of the government, with a view to obtain their desired modifications by lawful means, without exciting or attempting to excite hatred, contempt or disaffection, do not constitute an offense under this section."
According to the section, comments expressing strong disapproval of the "administrative or other action of the government without exciting or attempting to excite hatred, contempt or disaffection, do not constitute an offense under this section." The law, originally drafted by Thomas Macaulay, was not part of the IPC in the 1860s. It was introduced in 1870. Many Indian freedom fighters, including Mahatma Gandhi and Bal Gangadhar Tilak, were charged with sedition during the struggle for independence.